|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
module OpenSourceProjectsHelper
|
|
|
|
|
def render_opensource_project(os_projects)
|
|
|
|
|
s=''
|
|
|
|
|
s=''.html_safe
|
|
|
|
|
s << "<ul class='projects'>\n"
|
|
|
|
|
os_projects.each do |project|
|
|
|
|
|
s << "<li class='project-table'><div class='#{classes}'>"
|
|
|
|
@ -12,4 +12,35 @@ module OpenSourceProjectsHelper
|
|
|
|
|
s << "</ul>"
|
|
|
|
|
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
|
|
|
|
|