Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Pastebin

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
commit d4edf8236cbafc6aec31f599e9d0493e6e6f7bb6
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Date:   Fri Oct 4 17:16:14 2013 +0000

    [#5561] make project menu go full width too

diff --git Allura/allura/nf/allura/css/site_style.css Allura/allura/nf/allura/css/site_style.css
index 4ef4eb0..8fa6df3 100644
--- Allura/allura/nf/allura/css/site_style.css
+++ Allura/allura/nf/allura/css/site_style.css
@@ -3191,6 +3191,7 @@ ul.dropdown ul li a:hover {
     border: 1px solid black;
 }
 
+.content-maximized #top_nav,
 .content-maximized #page-body,
 .content-maximized #content_base > div:last-child,
 .content-maximized #content_base .codebrowser



commit 629fb66681af0ea76050680333aed073174342da
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Date:   Fri Oct 4 17:16:51 2013 +0000

    [#5561] move macro from theme_macros to lib, so themes don't have to implement it

diff --git Allura/allura/templates/jinja_master/lib.html Allura/allura/templates/jinja_master/lib.html
index 4ca02e9..147b296 100644
--- Allura/allura/templates/jinja_master/lib.html
+++ Allura/allura/templates/jinja_master/lib.html
@@ -133,6 +133,18 @@
   {% endfor %}
 {% endmacro %}
 
+{%- macro maximize_content_button() %}
+    {% do g.register_forge_js('js/maximize-content.js') %}
+    <a id="maximize-content" href="#">
+      <b data-icon="{{g.icons.expand.char}}" class="ico {{g.icons.expand.css}}" title="Maximize"> </b> Maximize
+    </a>
+    <a id="restore-content" href="#">
+      <b data-icon="{{g.icons.restore.char}}" class="ico {{g.icons.restore.css}}" title="Restore"> </b> Restore
+    </a>
+{%- endmacro %}
+
+
+
 {% macro markdown_syntax(id='') %}
 <a class="markdown_syntax_toc_crumb" href="#md_ex_toc{{id}}">Back</a>
 <h1>Markdown Syntax Guide</h1>
diff --git Allura/allura/templates/jinja_master/theme_macros.html Allura/allura/templates/jinja_master/theme_macros.html
index 159f790..9f7a4f2 100644
--- Allura/allura/templates/jinja_master/theme_macros.html
+++ Allura/allura/templates/jinja_master/theme_macros.html
@@ -123,12 +123,3 @@
     </div>
 {%- endmacro %}
 
-{%- macro maximize_content_button() %}
-    {% do g.register_forge_js('js/maximize-content.js') %}
-    <a id="maximize-content" href="#">
-      <b data-icon="{{g.icons.expand.char}}" class="ico {{g.icons.expand.css}}" title="Maximize"> </b> Maximize
-    </a>
-    <a id="restore-content" href="#">
-      <b data-icon="{{g.icons.restore.char}}" class="ico {{g.icons.restore.css}}" title="Restore"> </b> Restore
-    </a>
-{%- endmacro %}
diff --git Allura/allura/templates/repo/commit.html Allura/allura/templates/repo/commit.html
index a43ae6e..dd0dafe 100644
--- Allura/allura/templates/repo/commit.html
+++ Allura/allura/templates/repo/commit.html
@@ -17,7 +17,7 @@
        under the License.
 -#}
 {% extends 'allura:templates/repo/repo_master.html' %}
-{% import g.theme.jinja_macros as theme_macros with context %}
+{% import 'allura:templates/jinja_master/lib.html' as lib with context %}
 
 {% do g.register_forge_css('css/forge/diff.css') %}
 
@@ -30,7 +30,7 @@ Commit <a href="{{commit.url()}}">{{commit.shorthand_id()}}</a> {{commit_labels(
 {%- endblock %}
 
 {% block actions %}
-{{ theme_macros.maximize_content_button() }}
+{{ lib.maximize_content_button() }}
 <a href="{{commit.url()}}log/">
   <b data-icon="{{g.icons.history.char}}" class="ico {{g.icons.history.css}}" title="History"> </b> History
 </a>
diff --git Allura/allura/templates/repo/diff.html Allura/allura/templates/repo/diff.html
index b93de99..217e48f 100644
--- Allura/allura/templates/repo/diff.html
+++ Allura/allura/templates/repo/diff.html
@@ -17,7 +17,7 @@
        under the License.
 -#}
 {% extends 'allura:templates/repo/repo_master.html' %}
-{% import g.theme.jinja_macros as theme_macros with context %}
+{% import 'allura:templates/jinja_master/lib.html' as lib with context %}
 {% do g.register_forge_css('css/forge/hilite.css') %}
 {% do g.register_forge_css('css/forge/diff.css') %}
 
@@ -37,7 +37,7 @@
 {% endblock %}
 
 {% block actions %}
-{{ theme_macros.maximize_content_button() }}
+{{ lib.maximize_content_button() }}
 {% endblock %}
 
 {% block content %}
diff --git Allura/allura/templates/repo/file.html Allura/allura/templates/repo/file.html
index dad0dea..965332b 100644
--- Allura/allura/templates/repo/file.html
+++ Allura/allura/templates/repo/file.html
@@ -17,7 +17,7 @@
        under the License.
 -#}
 {% extends 'allura:templates/repo/repo_master.html' %}
-{% import g.theme.jinja_macros as theme_macros with context %}
+{% import 'allura:templates/jinja_master/lib.html' as lib with context %}
 {% do g.register_forge_css('css/forge/hilite.css') %}
 
 {% block title %}
@@ -32,7 +32,7 @@
 {% endblock %}
 
 {% block actions %}
-{{ theme_macros.maximize_content_button() }}
+{{ lib.maximize_content_button() }}
 <a href="{{blob.commit.url()}}log/?path={{ blob.path() }}">
   <b data-icon="{{g.icons.history.char}}" class="ico {{g.icons.history.css}}" title="History"> </b> History
 </a>