aboutsummaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2013-11-22 21:32:06 +0100
committerChristian Weiske <cweiske@cweiske.de>2013-11-22 21:32:06 +0100
commitf47ddf0758f120dfb26f03fb36be5cd897a10f23 (patch)
tree9b64102a66eff570eee85c382688a2f1d423beb4 /data/templates
parent934246267dc4089dc0952bbe8412f32fd7346739 (diff)
downloadphorkie-f47ddf0758f120dfb26f03fb36be5cd897a10f23.tar.gz
phorkie-f47ddf0758f120dfb26f03fb36be5cd897a10f23.zip
first work on remote fork notifications with linkback (webmention/pingback)
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/display-sidebar-fork.htm24
1 files changed, 22 insertions, 2 deletions
diff --git a/data/templates/display-sidebar-fork.htm b/data/templates/display-sidebar-fork.htm
index d3793e1..9ed5626 100644
--- a/data/templates/display-sidebar-fork.htm
+++ b/data/templates/display-sidebar-fork.htm
@@ -1,7 +1,7 @@
{% set conns = repo.getConnectionInfo() %}
{% if conns.isFork() %}
{% set origin = conns.getOrigin() %}
- <h4>Fork of</h4>
+ <h4 id="parent">Fork of</h4>
<p>
{% set webpage = origin.getWebURL() %}
{% if webpage %}
@@ -9,6 +9,26 @@
{% else %}
{{origin.getTitle()}}
{% endif %}
- (<a href="{{origin.getCloneUrl()}}">clone URL</a>)
+ <a href="{{origin.getCloneUrl()}}" title="Clone URL"><i class="icon-globe"></i></a>
</p>
+{% endif %}
+{% if conns.hasForks() %}
+ <h4 id="forks">Forks</h4>
+ <ul>
+ {% for remote in conns.getForks %}
+ <li>
+ {% set webpage = remote.getWebURL() %}
+ {% if webpage %}
+ <a href="{{webpage}}">{{remote.getTitle()}}</a>
+ {% else %}
+ {{remote.getTitle()}}
+ {% endif %}
+
+ {% set cloneUrl = remote.getCloneUrl() %}
+ {% if cloneUrl %}
+ <a href="{{cloneUrl}}" title="Clone URL"><i class="icon-globe"></i></a>
+ {% endif %}
+ </li>
+ {% endfor %}
+ </ul>
{% endif %} \ No newline at end of file