You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by he...@apache.org on 2016/01/23 01:29:58 UTC
[2/3] allura git commit: [#8046] Fix duplicate titles on neighborhood
pages
[#8046] Fix duplicate titles on neighborhood pages
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/8fc77f44
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/8fc77f44
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/8fc77f44
Branch: refs/heads/hs/8046
Commit: 8fc77f44d68fe1701fafae8edced16de1edae35d
Parents: 6a27be2
Author: Heith Seewald <he...@gmail.com>
Authored: Fri Jan 22 19:28:25 2016 -0500
Committer: Heith Seewald <he...@gmail.com>
Committed: Fri Jan 22 19:28:25 2016 -0500
----------------------------------------------------------------------
.../allura/templates/jinja_master/nav_menu.html | 20 +++++++++-----------
.../templates/jinja_master/theme_macros.html | 7 ++++---
2 files changed, 13 insertions(+), 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/8fc77f44/Allura/allura/templates/jinja_master/nav_menu.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/jinja_master/nav_menu.html b/Allura/allura/templates/jinja_master/nav_menu.html
index b65d80d..e100912 100644
--- a/Allura/allura/templates/jinja_master/nav_menu.html
+++ b/Allura/allura/templates/jinja_master/nav_menu.html
@@ -31,17 +31,15 @@
{% elif c.project.icon %}
<img src="{{c.project.url()}}icon?{{c.project.icon._id.generation_time}}" class="project_icon" alt="Project Logo">
{% endif %}
- <h1 class="project_title">
- <a href="{{c.project.url()}}" class="project_link">
- {%- if c.project.is_user_project -%}
- {{ c.project.user_project_of.display_name }}
- {%- elif c.project.is_nbhd_project -%}
- {{ c.project.neighborhood.name }}
- {%- else -%}
- {{ c.project.name }}
- {%- endif -%}
- </a>
- </h1>
+ <h1 class="project_title">
+ <a href="{{c.project.url()}}" class="project_link">
+ {%- if c.project.is_user_project -%}
+ {{ c.project.user_project_of.display_name }}
+ {%- elif not c.project.is_nbhd_project -%}
+ {{ c.project.name }}
+ {%- endif -%}
+ </a>
+ </h1>
{% set status = c.project.troves_by_type('developmentstatus')|sort(attribute='fullname') %}
{% set status = status[-1] %}
{% if status and status.shortname not in ['production', 'mature'] %}
http://git-wip-us.apache.org/repos/asf/allura/blob/8fc77f44/Allura/allura/templates/jinja_master/theme_macros.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/jinja_master/theme_macros.html b/Allura/allura/templates/jinja_master/theme_macros.html
index 52365df..8ff8763 100644
--- a/Allura/allura/templates/jinja_master/theme_macros.html
+++ b/Allura/allura/templates/jinja_master/theme_macros.html
@@ -127,22 +127,23 @@ http://stackoverflow.com/questions/26582731/redefining-imported-jinja-macros
</nav>
{%- endmacro %}
{% endif %}
-
{% if not project_header_right %}
{%- macro project_header_right(project, app) %}
{% if project.neighborhood.icon %}
+ <div class="neighborhood_block">
<a href="{{project.neighborhood.url()}}"><img src="{{project.neighborhood.url()}}icon" class="neighborhood_icon"
alt="Return to {{project.neighborhood.name}}" title="Return to {{project.neighborhood.name}}"></a>
<div class="neighborhood_title">
- <h1><a href="{{project.neighborhood.url()}}">{{project.neighborhood.name}}</a></h1>
+ <h3><a href="{{project.neighborhood.url()}}">{{project.neighborhood.name}}</a></h3>
{% if project.neighborhood.project_list_url %}
<div class="neighborhood_title_link">
<a href="{{project.neighborhood.project_list_url}}">
View More Projects
</a>
</div>
+ </div>
{% endif %}
- </div>
+ </div>
{% endif %}
{%- endmacro %}
{% endif %}