parent
97765159a9
commit
d9250231e5
|
@ -156,11 +156,11 @@ module StoresHelper
|
|||
klass = project.class.to_s
|
||||
case klass
|
||||
when "Project"
|
||||
project_list = link_to l(:label_project_plural), projects_path
|
||||
project_list = "<lable>#{l(:label_project_plural)}</lable>"
|
||||
project_item = link_to project.to_s, project_path(project)
|
||||
[project_list, project_item]
|
||||
when "Course"
|
||||
course_list = link_to l(:label_new_course), courses_path
|
||||
course_list = "<lable>#{l(:label_new_course)}</lable>"
|
||||
course_item = link_to project.name, course_path(project)
|
||||
[course_list, course_item]
|
||||
else
|
||||
|
|
|
@ -4,9 +4,15 @@
|
|||
<% projects_results.each do |prj| %>
|
||||
<div>
|
||||
<p class="font_description2">
|
||||
<strong><%= l(:label_tags_project_name) %><%= link_to "#{prj.name}",:controller => "projects",:action => "show",:id => prj.id %></strong>
|
||||
<strong>
|
||||
<%= l(:label_tags_project_name) %>
|
||||
<%= link_to "#{prj.name}",:controller => "projects",:action => "show",:id => prj.id %>
|
||||
</strong>
|
||||
<br />
|
||||
<strong><%= l(:label_tags_project_description) %></strong><%= textilizable prj.description %>
|
||||
<strong>
|
||||
<%= l(:label_tags_project_description) %>
|
||||
</strong>
|
||||
<%= textilizable prj.description %>
|
||||
</p>
|
||||
</div>
|
||||
<div class="line_under"></div>
|
||||
|
|
|
@ -2,32 +2,50 @@
|
|||
<% unless show_flag.nil? %>
|
||||
<% case %>
|
||||
<% when show_flag == '1' %>
|
||||
<strong><%=l(:label_user)%>(<%= @results_count %>)</strong>
|
||||
<strong>
|
||||
<%=l(:label_user)%>
|
||||
(
|
||||
<%= @results_count %>
|
||||
)
|
||||
</strong>
|
||||
<%= render :partial => "show_users",:locals => {:users_results => users_results}%>
|
||||
<% when show_flag == '2'%>
|
||||
<strong><%=l(:label_project)%>(<%= @results_count %>)</strong>
|
||||
<strong>
|
||||
<%=l(:label_project)%>(<%= @results_count %>)
|
||||
</strong>
|
||||
<%= render :partial => "show_projects",:locals => {:projects_results => projects_results }%>
|
||||
<% when show_flag == '3'%>
|
||||
<strong><%=l(:label_issue)%>(<%= @results_count %>)</strong>
|
||||
<%= render :partial => "show_issues",:locals => {:issues_results => issues_results }%>
|
||||
<% when show_flag == '4'%>
|
||||
<strong><%= l(:label_requirement)%>(<%= @results_count %>)</strong>
|
||||
<strong>
|
||||
<%= l(:label_requirement)%>(<%= @results_count %>)
|
||||
</strong>
|
||||
<%= render :partial => "show_bids",:locals => {:bids_results => bids_results}%>
|
||||
<% when show_flag == '5'%>
|
||||
<strong><%= l(:label_forum)%>(<%= @results_count %>)</strong>
|
||||
<strong>
|
||||
<%= l(:label_forum)%>(<%= @results_count %>)
|
||||
</strong>
|
||||
<%= render :partial => "show_forums",:locals => {:forums_results => forums_results}%>
|
||||
<% when show_flag == '6'%>
|
||||
<strong><%= l(:label_attachment)%>(<%= @results_count %>)</strong>
|
||||
<strong>
|
||||
<%= l(:label_attachment)%>(<%= @results_count %>)
|
||||
</strong>
|
||||
<%= render :partial => "show_attachments",:locals => {:attachments_results => attachments_results}%>
|
||||
<% when show_flag == '7'%>
|
||||
<strong><%= l(:label_contest_innovate)%>(<%= @results_count %>)</strong>
|
||||
<strong>
|
||||
<%= l(:label_contest_innovate)%>(<%= @results_count %>)
|
||||
</strong>
|
||||
<%= render :partial => "show_contests",:locals => {:contests_results => contests_results}%>
|
||||
<% when show_flag == '8'%>
|
||||
<strong><%#= l(:label_attachment)%>
|
||||
开源项目:(<%= @results_count %>)</strong>
|
||||
开源项目:(<%= @results_count %>)
|
||||
</strong>
|
||||
<%= render :partial => "show_open_source_projects",:locals => {:projects_results => open_source_projects_results}%>
|
||||
<% when show_flag == '9'%>
|
||||
<strong><%= l(:label_course)%>(<%= @results_count %>)</strong>
|
||||
<strong>
|
||||
<%= l(:label_course)%>(<%= @results_count %>)
|
||||
</strong>
|
||||
<%= render :partial => "show_courses",:locals => {:courses_results => courses_results}%>
|
||||
<% else %>
|
||||
<strong><%= l(:label_tags_all_objects)%></strong>
|
||||
|
|
Loading…
Reference in New Issue