remote forking: use the original http/https url in description
[phorkie.git] / data / templates / display.htm
index ca52775eb4d2aea32164792f315e7566771aecbb..799f94d669757ef33b6339c8342f64f493b2f517 100644 (file)
@@ -1,41 +1,28 @@
 {% extends "base.htm" %}
 {% block title %}
 {% extends "base.htm" %}
 {% block title %}
- {%if repo.getDescription %}
-  {{repo.getDescription}}
- {%else%}
-  {{repo.id}}
- {%endif%}
+ {{repo.getTitle}}
+{% endblock %}
+
+{% block meta %}
+<link rel="meta" title="DOAP" type="application/rdf+xml" href="{{repo.getLink('doap')}}"/>
+{% if repo.getCloneURL(true) %}
+  <link rel="vcs-git" href="{{repo.getCloneURL(true)}}" title="{{repo.getTitle}} git repository"/>
+{% endif %}
+{% if repo.getCloneURL(false) %}
+  <link rel="vcs-git" href="{{repo.getCloneURL(false)}}" title="{{repo.getTitle}} git repository"/>
+{% endif %}
 {% endblock %}
 
 {% block content %}
 {% endblock %}
 
 {% block content %}
-<h1>{{repo.getDescription}}</h1>
-<div class="row-fluid">
- <div class="span4">
-  <a class="btn" href="{{repo.getLink('edit')}}"><i class="icon-edit"></i> edit</a>
- </div>
- <div class="span4" style="text-align: center">
-  <h3>Paste #{{repo.id}}</h3>
- </div>
- <div class="span4" style="text-align: right">
-  <form method="post" action="{{repo.getLink('fork')}}">
-    <button type="submit" class="btn"><i class="icon-share"></i> fork</button>
-  </form>
- </div>
-</div>
+ {% include 'display-head.htm' %}
 
 {% for file in repo.getFiles %}
 
 {% for file in repo.getFiles %}
-<div class="file">
- <div class="header">
-  <a class="btn btn-mini" href="{{file.getLink('raw')}}" style="float: right;">raw</a>
-  <h3 id="{{file.getFilename}}">{{file.getFilename}}<a class="anchorlink" href="#{{file.getFilename}}"></a></h3>
- </div>
- <div class="code">
-  {{file.getHighlightedContent|raw}}
- </div>
-</div>
+ {% include 'display-file.htm' %}
 {% endfor %}
 {% endfor %}
+
+ {% include 'display-foot.htm' %}
 {% endblock %}
 
 {% block sidebar %}
 {% endblock %}
 
 {% block sidebar %}
-sidebar FIXME
+ {% include 'display-sidebar-history.htm' %}
 {% endblock %}
 {% endblock %}