"
@@ -12,4 +12,35 @@ module OpenSourceProjectsHelper
s << ""
end
+ def show_condition(app_dir, language, created_at)
+ s=''.html_safe
+ unless app_dir.nil?
+ s_temp = content_tag('a', app_dir)
+ temp = link_to 'x', {:controller => "tags", :action => "remove_tag"}, :remote => true
+ temp = content_tag('span', temp, :class => 'del')
+ s_temp << temp
+ s_temp = content_tag('span', s_temp, :class => 'tag_show')
+ s << content_tag('div', s_temp, :id => 'tag')
+
+ end
+ unless language.nil?
+ s_temp = content_tag('a', language)
+ temp = link_to 'x', {:controller => "tags", :action => "remove_tag"}, :remote => true
+ temp = content_tag('span', temp, :class => 'del')
+ s_temp << temp
+ s_temp = content_tag('span', s_temp, :class => 'tag_show')
+ s << content_tag('div', s_temp, :id => 'tag')
+ end
+ unless created_at.nil?
+ s_temp = content_tag('a', created_at)
+ temp = link_to 'x', {:controller => "tags", :action => "remove_tag"}, :remote => true
+ temp = content_tag('span', temp, :class => 'del')
+ s_temp << temp
+ s_temp = content_tag('span', s_temp, :class => 'tag_show')
+ s << content_tag('div', s_temp, :id => 'tag')
+ end
+ s = content_tag('div', s, :id => 'tags')
+ # s = content_tag('div', s, :class => 'tags')
+ end
+
end
diff --git a/app/views/layouts/base_opensource_p.html.erb b/app/views/layouts/base_opensource_p.html.erb
index a25451544..ce6b7cb22 100644
--- a/app/views/layouts/base_opensource_p.html.erb
+++ b/app/views/layouts/base_opensource_p.html.erb
@@ -37,7 +37,10 @@
<% end %>
-
+
+ <%= link_to request.host()+"/open_source_projects", :controller => 'open_source_projects', :action => 'index' %> |
+ <%= link_to l(:field_homepage), home_path %> > <%= link_to "开源项目社区", :controller => 'open_source_projects', :action => 'index' %> > <%=link_to @open_source_project.name, open_source_project_path(@open_source_project) %> |
+
@@ -119,10 +122,10 @@
<% end %>
diff --git a/app/views/open_source_projects/index.html.erb b/app/views/open_source_projects/index.html.erb
index e83417dbb..6aca9d2d4 100644
--- a/app/views/open_source_projects/index.html.erb
+++ b/app/views/open_source_projects/index.html.erb
@@ -144,10 +144,9 @@ li {