Make phorkie search engine friendlier
[phorkie.git] / data / templates / display.htm
index f9ab2e58aa3b206ee59a1c47a97cd6051f2bf34f..16e1b0871cfe5476abdf6f9259c0979cf848af73 100644 (file)
@@ -1,49 +1,31 @@
 {% extends "base.htm" %}
-{% block title %}
- {%if repo.getDescription %}
-  {{repo.getDescription}}
- {%else%}
-  {{repo.id}}
- {%endif%}
+{% block title %}{{repo.getTitle}}{% endblock %}
+
+{% block meta %}
+<link rel="meta" title="DOAP" type="application/rdf+xml" href="{{repo.getLink('doap')}}"/>
+  <link rel="alternate" title="oEmbed" type="application/json+oembed" href="{{repo.getLink('oembed-json', null, true)}}" />
+  <link rel="alternate" title="oEmbed" type="application/xml+oembed" href="{{repo.getLink('oembed-xml', null, true)}}" />
+{% if repo.getCloneURL(true) %}
+  <link rel="vcs-git" href="{{repo.getCloneURL(true)}}" title="{{repo.getTitle}}"/>
+{% endif %}
+{% if repo.getCloneURL(false) %}
+  <link rel="vcs-git" href="{{repo.getCloneURL(false)}}" title="{{repo.getTitle}}"/>
+{% endif %}
 {% 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 %}
-<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 %}
 
-<div class="row-fluid" style="margin-top: 5ex">
- <div class="span12" style="text-align: right;">
-  <a class="btn" href="{{repo.getLink('delete')}}">
-   <i class="icon-trash"></i> Delete
-  </a>
- </div>
-</div>
+ {% include 'display-foot.htm' %}
 {% endblock %}
 
 {% block sidebar %}
-sidebar FIXME
+ {% include 'display-sidebar-owner.htm' %}
+ {% include 'display-sidebar-fork.htm' %}
+ {% include 'display-sidebar-history.htm' %}
+ {% include 'display-sidebar-urls.htm' %}
 {% endblock %}