title and css fix for file view

This commit is contained in:
harrybomrah authored and saurabhbhatia committed 2013-08-19 09:42:50 +08:00
1 parent 7dfd5d7e00
commit 88ad59f55a
10 files changed
+38 -29

No files matched your search

@@ -2,7 +2,7 @@ module Panel::PersonalLab::Desktop::PersonalLabsHelper
def publication_record publication, view
content_tag :li,
"item" => "true",
:class => "list_t_item" do
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" }" do
marker + \
content(publication, view) + \
edit_or_delete(publication)
@@ -65,10 +65,11 @@ module Panel::PersonalLab::Desktop::PersonalLabsHelper
def link_publication_file publication
publication.lab_files.map{|file|
link_to(image_tag(check_file_type(file.file.url)) + \
content_tag(:span, file.title, :class => "filetitle"),
content_tag(:span, file.file_title_translations[I18n.locale.to_s], :class => "filetitle"),
file.file.url,
:class => "file",
"target" => "_blank")
"target" => "_blank",
"title" => file.file_title_translations[I18n.locale.to_s])
}.inject(:+)
end