Revision 1005:85123e5bc883
| app/views/welcome/index.html.erb | ||
|---|---|---|
| 14 | 14 |
|
| 15 | 15 |
<div class="splitcontentright"> |
| 16 | 16 |
<% if @site_news.any? %> |
| 17 |
<div class="news box"> |
|
| 18 |
<h3><%=l(:label_news_site_latest)%></h3>
|
|
| 17 |
<div class="news box">
|
|
| 18 |
<h3><%=l(:label_news_site_latest)%></h3>
|
|
| 19 | 19 |
<%= render :partial => 'news/news', :locals => { :project => @site_project }, :collection => @site_news %>
|
| 20 |
|
|
| 21 | 20 |
<%= link_to l(:label_news_more), { :controller => 'projects', :action => @site_project.identifier, :id => 'news' } %>
|
| 22 | 21 |
</div> |
| 23 | 22 |
<% end %> |
| 24 |
<% if @projects.any? %>
|
|
| 23 |
<% if @projects.any? %> |
|
| 25 | 24 |
<div class="projects box"> |
| 26 | 25 |
<h3><%=l(:label_project_latest)%></h3> |
| 27 |
<ul> |
|
| 28 |
<% for project in @projects %> |
|
| 29 |
<% @project = project %> |
|
| 30 |
<li class="latest"> |
|
| 31 |
<span class="title"> |
|
| 32 |
<% if !project.root? %> |
|
| 33 |
<% project.ancestors.each do |p| %> |
|
| 34 |
<%= h(p) %> » |
|
| 35 |
<% end %> |
|
| 36 |
<% end %> |
|
| 37 |
<%= link_to_project project %> |
|
| 38 |
</span> |
|
| 39 |
<% if !project.is_public? %> |
|
| 40 |
<span class="private"><%= l(:field_is_private) %></span> |
|
| 41 |
<% end %> |
|
| 42 |
<span class="time"><%= format_time(project.created_on)%></span> |
|
| 43 |
<%= render_project_short_description project %> |
|
| 44 |
</li> |
|
| 45 |
<% end %> |
|
| 46 |
<% @project = nil %> |
|
| 47 |
</ul> |
|
| 48 |
<%= link_to l(:label_projects_more), :controller => 'projects' %> |
|
| 26 |
<%= render :partial => 'projects/latest' %> |
|
| 27 |
<%= link_to l(:label_projects_more), :controller => 'projects' %> |
|
| 28 |
</div> |
|
| 29 |
<div class="projects box"> |
|
| 30 |
<h3><%=l(:label_project_tags_all)%></h3> |
|
| 31 |
<%= render :partial => 'projects/tagcloud' %> |
|
| 32 |
<%= link_to l(:label_projects_more), :controller => 'projects' %> |
|
| 49 | 33 |
</div> |
| 50 | 34 |
<% end %> |
| 51 | 35 |
<%= call_hook(:view_welcome_index_right, :projects => @projects) %> |
| config/locales/en.yml | ||
|---|---|---|
| 494 | 494 |
label_project_all: All Projects |
| 495 | 495 |
label_project_latest: Latest projects |
| 496 | 496 |
label_projects_more: More projects |
| 497 |
label_project_tags_all: Project tags |
|
| 497 | 498 |
label_managers: Managed by |
| 498 | 499 |
label_issue: Issue |
| 499 | 500 |
label_issue_new: New issue |
| vendor/plugins/redmine_tags/app/views/projects/_tagcloud.html.erb | ||
|---|---|---|
| 1 |
<% content_for :header_tags do %> |
|
| 2 |
<%= stylesheet_link_tag 'redmine_tags', :plugin => 'redmine_tags' %> |
|
| 3 |
<% end %> |
|
| 4 |
|
|
| 5 |
<div id="tags"> |
|
| 6 |
<%= render_tags_list(Project.available_tags, :style => :cloud) %> |
|
| 7 |
</div> |
|
| 8 |
|
|
| 9 |
|
|
| vendor/plugins/redmine_tags/lib/redmine_tags/patches/projects_helper_patch.rb | ||
|---|---|---|
| 4 | 4 |
|
| 5 | 5 |
def self.included(base) # :nodoc: |
| 6 | 6 |
base.send(:include, InstanceMethods) |
| 7 |
base.send(:include, TagsHelper) |
|
| 7 | 8 |
base.class_eval do |
| 8 | 9 |
unloadable |
| 9 | 10 |
end |
Also available in: Unified diff