{% 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 %}
+
+ {% 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 %}