• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

allura


Commit MetaInfo

修訂a242e89476803a20e9cb821ad6038b205ba0eb3a (tree)
時間2012-05-22 05:20:32
作者pill <pill.sv0@gmai...>
CommiterCory Johns

Log Message

[4187]ticket:51 fix not bulletproof conditions in titlebar template + small test extention

Change Summary

差異

--- a/Allura/allura/templates/jinja_master/master.html
+++ b/Allura/allura/templates/jinja_master/master.html
@@ -59,13 +59,10 @@
5959 {{theme_macros.header(c.user.username, c.user._id, c.user.display_name, g.login_url, '/auth/logout')}}
6060 {% set flash = tg.flash_obj.render('flash', use_js=False) %}
6161 <section id="page-body" class="{{g.document_class(neighborhood)}}">
62- <div class="grid-24">
63- {% if neighborhood and neighborhood.show_title %}
62+ <div class="grid-24">
6463 {% block nav_menu %}
6564 {% include g.theme.nav_menu %}
6665 {% endblock %}
67- {% endif %}
68-
6966 </div>
7067 <div id="top_nav" class="">
7168 {% block top_nav %}
--- a/Allura/allura/templates/jinja_master/nav_menu.html
+++ b/Allura/allura/templates/jinja_master/nav_menu.html
@@ -1,5 +1,5 @@
11 {% import 'allura:templates/jinja_master/lib.html' as lib with context %}
2-{% if not c.project %}
2+{% if not c.project or not c.project.neighborhood.show_title %}
33 <div id="nav_menu_missing"></div>
44 {% else %}
55 {% if c.project.neighborhood.icon %}
@@ -22,4 +22,4 @@
2222 {% endif %}
2323 </h1>
2424 </a>
25-{% endif %}
25+{% endif %}
\ No newline at end of file
--- a/Allura/allura/templates/jinja_master/neigh_nav_menu.html
+++ b/Allura/allura/templates/jinja_master/neigh_nav_menu.html
@@ -1,4 +1,4 @@
1-{% if not neighborhood %}
1+{% if not neighborhood or not neighborhood.show_title %}
22 <div id="nav_menu_missing"></div>
33 {% else %}
44
--- a/Allura/allura/tests/functional/test_neighborhood.py
+++ b/Allura/allura/tests/functional/test_neighborhood.py
@@ -78,7 +78,8 @@ class TestNeighborhood(TestController):
7878 r = self.app.get('/adobe/_admin/overview', extra_environ=dict(username='root'))
7979 # no title now
8080 assert 'class="project_title"' not in str(r)
81-
81+ r = self.app.get('/adobe', extra_environ=dict(username='root'))
82+ assert 'class="project_title"' not in str(r)
8283
8384
8485 def test_admin_stats_del_count(self):