aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/templates/display-sidebar-fork.htm14
-rw-r--r--data/templates/display.htm1
2 files changed, 15 insertions, 0 deletions
diff --git a/data/templates/display-sidebar-fork.htm b/data/templates/display-sidebar-fork.htm
new file mode 100644
index 0000000..d3793e1
--- /dev/null
+++ b/data/templates/display-sidebar-fork.htm
@@ -0,0 +1,14 @@
+{% set conns = repo.getConnectionInfo() %}
+{% if conns.isFork() %}
+ {% set origin = conns.getOrigin() %}
+ <h4>Fork of</h4>
+ <p>
+ {% set webpage = origin.getWebURL() %}
+ {% if webpage %}
+ <a href="{{webpage}}">{{origin.getTitle()}}</a>
+ {% else %}
+ {{origin.getTitle()}}
+ {% endif %}
+ (<a href="{{origin.getCloneUrl()}}">clone URL</a>)
+ </p>
+{% endif %} \ No newline at end of file
diff --git a/data/templates/display.htm b/data/templates/display.htm
index 2bd0d73..27d1314 100644
--- a/data/templates/display.htm
+++ b/data/templates/display.htm
@@ -23,5 +23,6 @@
{% block sidebar %}
{% include 'display-sidebar-owner.htm' %}
+ {% include 'display-sidebar-fork.htm' %}
{% include 'display-sidebar-history.htm' %}
{% endblock %}