aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-05-07 23:07:30 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-05-07 23:07:30 +0200
commit5d876f011e259b4ec59817579cc54fe3a4129231 (patch)
tree462fbebfe68d1b696ffde303344680b1597ed668 /data
parent347d191850d9a3c5a84f3dff1971e6d955555ac9 (diff)
downloadphorkie-5d876f011e259b4ec59817579cc54fe3a4129231.tar.gz
phorkie-5d876f011e259b4ec59817579cc54fe3a4129231.zip
use getTitle method
Diffstat (limited to 'data')
-rw-r--r--data/templates/delete.htm4
-rw-r--r--data/templates/display-head.htm6
-rw-r--r--data/templates/display.htm6
-rw-r--r--data/templates/repo-sidebar-list.htm3
-rw-r--r--data/templates/revision-head.htm5
-rw-r--r--data/templates/revision.htm6
-rw-r--r--data/templates/tool.htm12
7 files changed, 10 insertions, 32 deletions
diff --git a/data/templates/delete.htm b/data/templates/delete.htm
index ff27220..8c0fc61 100644
--- a/data/templates/delete.htm
+++ b/data/templates/delete.htm
@@ -7,10 +7,10 @@ Confirm deletion of repository #{{repo.id}}
<h1>Delete paste #{{repo.id}}?</h1>
<div class="well" style="margin-top: 5ex;">
<p>
- Do you really want to delete the folloing paste #{{repo.id}}?
+ Do you really want to delete the following paste?
</p>
<p>
- <strong>{{repo.getDescription}}</strong>
+ <strong>{{repo.getTitle}}</strong>
</p>
<div class="row-fluid" style="margin-top: 5ex;">
diff --git a/data/templates/display-head.htm b/data/templates/display-head.htm
index 365b094..082ecff 100644
--- a/data/templates/display-head.htm
+++ b/data/templates/display-head.htm
@@ -1,11 +1,9 @@
-<h1>{{repo.getDescription}}</h1>
+<h1>{{repo.getTitle}}</h1>
<div class="row repo-info">
<div class="span2">
<a class="btn" href="{{repo.getLink('edit')}}"><i class="icon-edit"></i> edit</a>
</div>
- <div class="span5" style="text-align: center">
- <h3>Paste #{{repo.id}}</h3>
- </div>
+ <div class="span5" style="text-align: center">&nbsp;</div>
<div class="span2" style="text-align: right">
<form method="post" action="{{repo.getLink('fork')}}">
<button type="submit" class="btn"><i class="icon-share"></i> fork</button>
diff --git a/data/templates/display.htm b/data/templates/display.htm
index 847a8ea..6d84c46 100644
--- a/data/templates/display.htm
+++ b/data/templates/display.htm
@@ -1,10 +1,6 @@
{% extends "base.htm" %}
{% block title %}
- {%if repo.getDescription %}
- {{repo.getDescription}}
- {%else%}
- {{repo.id}}
- {%endif%}
+ {{repo.getTitle}}
{% endblock %}
{% block content %}
diff --git a/data/templates/repo-sidebar-list.htm b/data/templates/repo-sidebar-list.htm
index c20e8b6..568656e 100644
--- a/data/templates/repo-sidebar-list.htm
+++ b/data/templates/repo-sidebar-list.htm
@@ -1,7 +1,6 @@
<li>
<a href="{{repo.getLink('display')}}">
- {{repo.id}}
- {{repo.getDescription}}
+ {{repo.getTitle}}
</a><br/>
&nbsp;&nbsp;&nbsp;<span title="{{repo.crdate|date('c')}}">{{dh.get(repo.crdate)}}</span>
</li>
diff --git a/data/templates/revision-head.htm b/data/templates/revision-head.htm
index 3f31dd9..132a68f 100644
--- a/data/templates/revision-head.htm
+++ b/data/templates/revision-head.htm
@@ -1,4 +1,4 @@
-<h1>{{repo.getDescription}}</h1>
+<h1>{{repo.getTitle}}</h1>
<div class="row repo-info">
<div class="span2">
<a class="btn btn-primary" href="{{repo.getLink('display')}}">
@@ -6,9 +6,6 @@
</a>
</div>
<div class="span5" style="text-align: center">
- <h3>
- Paste #{{repo.id}}
- </h3>
<p>
revision <strong>{{repo.hash}}</strong>
</p>
diff --git a/data/templates/revision.htm b/data/templates/revision.htm
index f4da363..cd62e6c 100644
--- a/data/templates/revision.htm
+++ b/data/templates/revision.htm
@@ -1,10 +1,6 @@
{% extends "base.htm" %}
{% block title %}
- {%if repo.getDescription %}
- {{repo.getDescription}}
- {%else%}
- {{repo.id}}
- {%endif%}
+ {{repo.getTitle}}
- revision {{repo.hash}}
{% endblock %}
diff --git a/data/templates/tool.htm b/data/templates/tool.htm
index 07a29b4..74533c7 100644
--- a/data/templates/tool.htm
+++ b/data/templates/tool.htm
@@ -1,23 +1,15 @@
{% extends "base.htm" %}
{% block title %}
- Tool results:
- {%if repo.getDescription %}
- {{repo.getDescription}}
- {%else%}
- {{repo.id}}
- {%endif%}
+ Tool results: {{repo.getTitle}}
{% endblock %}
{% block content %}
-<h1>Tool results: {{repo.getDescription}}</h1>
+<h1>Tool results: {{repo.getTitle}}</h1>
<div class="row-fluid repo-info">
<div class="span4">
<a class="btn" href="{{repo.getLink('edit')}}"><i class="icon-edit"></i> edit</a>
<a class="btn" href="{{repo.getLink('display')}}"><i class="icon-arrow-left"></i> back</a>
</div>
- <div class="span4" style="text-align: center">
- <h3>Paste #{{repo.id}}</h3>
- </div>
</div>
{% for line in toolres.annotations.general %}