Commit 7d11a564bf3d5d2708940fe1b8b3c8135f2707b5
1 parent
bf9032a1
Exists in
master
and in
29 other branches
ActionItem1050: moving some features from layout to helper method
Showing
5 changed files
with
21 additions
and
9 deletions
Show diff stats
app/helpers/application_helper.rb
app/models/theme.rb
app/views/layouts/application-ng.rhtml
1 | -<html> | |
1 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
2 | +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= html_language %>" lang="<%= html_language %>"> | |
2 | 3 | <head> |
3 | 4 | <title><%= page_title %></title> |
4 | 5 | <%= meta_tags_for_article(@page) %> |
... | ... | @@ -79,7 +80,7 @@ |
79 | 80 | </div><!-- end id="user" --> |
80 | 81 | |
81 | 82 | <h1 id="site-title"> |
82 | - <a href="http://softwarelivre.org"><span> Title of the Site </span></a> | |
83 | + <%= link_to content_tag('span', environment.name), environment.top_url %> | |
83 | 84 | </h1> |
84 | 85 | <div id="navigation"> |
85 | 86 | <ul> |
... | ... | @@ -101,5 +102,8 @@ |
101 | 102 | <div id="theme-footer"> |
102 | 103 | <%= theme_footer %> |
103 | 104 | </div><!-- end id="theme-footer" --> |
105 | + | |
106 | + <%= noosfero_layout_features %> | |
107 | + | |
104 | 108 | </body> |
105 | 109 | </html> | ... | ... |
app/views/layouts/application.rhtml
... | ... | @@ -167,13 +167,9 @@ |
167 | 167 | <% end %> |
168 | 168 | <%= javascript_include_tag 'better-browser-promotion' %> |
169 | 169 | |
170 | - <% if is_testing_theme %> | |
171 | - <%= render :file => 'shared/theme_test_panel' %> | |
172 | - <% end %> | |
173 | - | |
174 | - <% if ask_to_join? %> | |
175 | - <%= render :file => 'shared/join_community_popup' %> | |
176 | - <% end %> | |
170 | + <%# if you need to add HTML stuff to the layout, include it in | |
171 | + app/views/shared/noosfero_layout_features.rhtml! %> | |
172 | + <%= noosfero_layout_features %> | |
177 | 173 | |
178 | 174 | </body> |
179 | 175 | </html> | ... | ... |