From 271df87bc8c768167889902c455d3c7dfc0f155b Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 27 Mar 2012 21:44:13 +0200 Subject: use twitter bootstrap for layouting --- data/config.default.php | 1 + data/config.php.dist | 3 +++ data/templates/base.htm | 42 ++++++++++++++++++++++++++++++++++-------- data/templates/display.htm | 31 +++++++++++++++++++++---------- data/templates/list.htm | 14 +++++++++++--- 5 files changed, 70 insertions(+), 21 deletions(-) (limited to 'data') diff --git a/data/config.default.php b/data/config.default.php index ec68622..ab5c474 100644 --- a/data/config.default.php +++ b/data/config.default.php @@ -2,5 +2,6 @@ $GLOBALS['phorkie']['cfg'] = array( 'repos' => __DIR__ . '/../repos/', 'tpl' => __DIR__ . '/templates/', + 'css' => 'http://twitter.github.com/bootstrap/assets/css/bootstrap.css', ); ?> \ No newline at end of file diff --git a/data/config.php.dist b/data/config.php.dist index e69de29..b213e85 100644 --- a/data/config.php.dist +++ b/data/config.php.dist @@ -0,0 +1,3 @@ + diff --git a/data/templates/base.htm b/data/templates/base.htm index d0c3cee..aaf61da 100644 --- a/data/templates/base.htm +++ b/data/templates/base.htm @@ -1,17 +1,43 @@ + {% block title %}{% endblock %} - Phorkie - -
{% block content %}{% endblock %}
+ + +
+
+
+ {% block content %}{% endblock %} +
+
+ {% block sidebar %}{% endblock %} +
+
+
\ No newline at end of file diff --git a/data/templates/display.htm b/data/templates/display.htm index afdc75c..cabff59 100644 --- a/data/templates/display.htm +++ b/data/templates/display.htm @@ -3,17 +3,28 @@ {% block content %}

{{repo.getDescription}}

- +
+
+ edit +
+
+ fork +
+
+ {% for file in repo.getFiles %} -
-

{{file.getFilename}}

-

- raw -

- {{file.getHighlightedContent|raw}} +
+
+ raw +

{{file.getFilename}}

+
+
+ {{file.getHighlightedContent|raw}} +
{% endfor %} {% endblock %} + +{% block sidebar %} +sidebar FIXME +{% endblock %} \ No newline at end of file diff --git a/data/templates/list.htm b/data/templates/list.htm index 5142a7b..ea71bd6 100644 --- a/data/templates/list.htm +++ b/data/templates/list.htm @@ -12,13 +12,21 @@ -- cgit v1.2.3