Add oEmbed support
[phorkie.git] / data / templates / display-head.htm
index ba1f467080d5beda58c1506d09cd17b047d4fb62..8c1690866c0429ff5b81a9890a9e0f73073f9c03 100644 (file)
@@ -1,9 +1,4 @@
-{% if forksuccess %}
-<div class="alert alert-success">
- <a href="#" class="close" data-dismiss="alert">×</a>
- Paste has been successfully forked.
-</div>
-{% endif %}
+{% include 'flashmessages.htm' %}
 
 <h1>{{repo.getTitle}}</h1>
 <div class="row repo-info">
  <div class="span2 pull-right">
   <form method="post" action="{{repo.getLink('fork')}}">
    <div class="btn-group pull-right">
+    {% if htmlhelper.mayWriteLocally %}
     <button type="submit" class="btn"><i class="icon-share"></i> fork</button>
+    {% else %}
+    <a class="btn" href="{{repo.getLink('remotefork')}}"><i class="icon-share"></i> Fork to remote system</a>
+    {% endif %}
     <button class="btn dropdown-toggle" data-toggle="dropdown">
      <span class="caret"></span>
     </button>
     <ul class="dropdown-menu">
+     {% if htmlhelper.mayWriteLocally %}
      <li><a href="{{repo.getLink('remotefork')}}"><i class="icon-share"></i> Fork to remote system</a></li>
      <li class="divider"></li>
+     {% endif %}
      <li><a href="help#remote-forking"><i class="icon-question-sign"></i> Help on remote forking</a></li>
     </ul>
    </div>
   </form>
  </div>
 </div>
-
-{% if repo.getCloneURL(true) or repo.getCloneURL(false) %}
-<div class="urlinfo well well-small">
- {% if repo.getCloneURL(true) %}
- <div class="row-fluid">
-  <div class="span3">Public clone URL</div>
-  <div class="span9">
-   <a href="{{repo.getCloneURL(true)}}">{{repo.getCloneURL(true)}}</a>
-  </div>
- </div>
- {% endif %}
- {% if repo.getCloneURL(false) %}
- <div class="row-fluid">
-  <div class="span3">Private clone URL</div>
-  <div class="span9">
-   <a href="{{repo.getCloneURL(false)}}">{{repo.getCloneURL(false)}}</a>
-  </div>
- </div>
- {% endif %}
-</div>
-{% endif %}