title and css fix for file view
This commit is contained in:
parent
7dfd5d7e00
commit
88ad59f55a
|
@ -2,7 +2,7 @@ module Panel::PersonalBook::Desktop::PersonalBooksHelper
|
||||||
def publication_record publication, view
|
def publication_record publication, view
|
||||||
content_tag :li,
|
content_tag :li,
|
||||||
"item" => "true",
|
"item" => "true",
|
||||||
:class => "list_t_item" do
|
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" }" do
|
||||||
marker + \
|
marker + \
|
||||||
content(publication, view) + \
|
content(publication, view) + \
|
||||||
edit_or_delete(publication)
|
edit_or_delete(publication)
|
||||||
|
@ -65,10 +65,11 @@ module Panel::PersonalBook::Desktop::PersonalBooksHelper
|
||||||
def link_publication_file publication
|
def link_publication_file publication
|
||||||
publication.writing_book_files.map{|file|
|
publication.writing_book_files.map{|file|
|
||||||
link_to(image_tag(check_file_type(file.file.url)) + \
|
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,
|
file.file.url,
|
||||||
:class => "file",
|
:class => "file",
|
||||||
"target" => "_blank")
|
"target" => "_blank",
|
||||||
|
"title" => file.file_title_translations[I18n.locale.to_s])
|
||||||
}.inject(:+)
|
}.inject(:+)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ module Panel::PersonalConference::Desktop::ConferencePagesHelper
|
||||||
def publication_record publication, view
|
def publication_record publication, view
|
||||||
content_tag :li,
|
content_tag :li,
|
||||||
"item" => "true",
|
"item" => "true",
|
||||||
:class => "list_t_item" do
|
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" }" do
|
||||||
marker + \
|
marker + \
|
||||||
content(publication, view) + \
|
content(publication, view) + \
|
||||||
edit_or_delete(publication)
|
edit_or_delete(publication)
|
||||||
|
@ -65,10 +65,11 @@ module Panel::PersonalConference::Desktop::ConferencePagesHelper
|
||||||
def link_publication_file publication
|
def link_publication_file publication
|
||||||
publication.writing_conference_files.map{|file|
|
publication.writing_conference_files.map{|file|
|
||||||
link_to(image_tag(check_file_type(file.file.url)) + \
|
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,
|
file.file.url,
|
||||||
:class => "file",
|
:class => "file",
|
||||||
"target" => "_blank")
|
"target" => "_blank",
|
||||||
|
"title" => file.file_title_translations[I18n.locale.to_s])
|
||||||
}.inject(:+)
|
}.inject(:+)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ module Panel::PersonalDiploma::Desktop::PersonalDiplomasHelper
|
||||||
def publication_record publication, view
|
def publication_record publication, view
|
||||||
content_tag :li,
|
content_tag :li,
|
||||||
"item" => "true",
|
"item" => "true",
|
||||||
:class => "list_t_item" do
|
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" }" do
|
||||||
marker + \
|
marker + \
|
||||||
content(publication, view) + \
|
content(publication, view) + \
|
||||||
edit_or_delete(publication)
|
edit_or_delete(publication)
|
||||||
|
@ -65,10 +65,11 @@ module Panel::PersonalDiploma::Desktop::PersonalDiplomasHelper
|
||||||
def link_publication_file publication
|
def link_publication_file publication
|
||||||
publication.writing_conference_files.map{|file|
|
publication.writing_conference_files.map{|file|
|
||||||
link_to(image_tag(check_file_type(file.file.url)) + \
|
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,
|
file.file.url,
|
||||||
:class => "file",
|
:class => "file",
|
||||||
"target" => "_blank")
|
"target" => "_blank",
|
||||||
|
"title" => file.file_title_translations[I18n.locale.to_s])
|
||||||
}.inject(:+)
|
}.inject(:+)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ module Panel::PersonalExperience::Desktop::PersonalExperiencesHelper
|
||||||
def publication_record publication, view
|
def publication_record publication, view
|
||||||
content_tag :li,
|
content_tag :li,
|
||||||
"item" => "true",
|
"item" => "true",
|
||||||
:class => "list_t_item" do
|
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" }" do
|
||||||
marker + \
|
marker + \
|
||||||
content(publication, view) + \
|
content(publication, view) + \
|
||||||
edit_or_delete(publication)
|
edit_or_delete(publication)
|
||||||
|
@ -65,10 +65,11 @@ module Panel::PersonalExperience::Desktop::PersonalExperiencesHelper
|
||||||
def link_publication_file publication
|
def link_publication_file publication
|
||||||
publication.writing_conference_files.map{|file|
|
publication.writing_conference_files.map{|file|
|
||||||
link_to(image_tag(check_file_type(file.file.url)) + \
|
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,
|
file.file.url,
|
||||||
:class => "file",
|
:class => "file",
|
||||||
"target" => "_blank")
|
"target" => "_blank",
|
||||||
|
"title" => file.file_title_translations[I18n.locale.to_s])
|
||||||
}.inject(:+)
|
}.inject(:+)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ module Panel::PersonalHonor::Desktop::PersonalHonorsHelper
|
||||||
def publication_record publication, view
|
def publication_record publication, view
|
||||||
content_tag :li,
|
content_tag :li,
|
||||||
"item" => "true",
|
"item" => "true",
|
||||||
:class => "list_t_item" do
|
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" }" do
|
||||||
marker + \
|
marker + \
|
||||||
content(publication, view) + \
|
content(publication, view) + \
|
||||||
edit_or_delete(publication)
|
edit_or_delete(publication)
|
||||||
|
@ -58,10 +58,11 @@ module Panel::PersonalHonor::Desktop::PersonalHonorsHelper
|
||||||
def link_publication_file publication
|
def link_publication_file publication
|
||||||
publication.writing_book_files.map{|file|
|
publication.writing_book_files.map{|file|
|
||||||
link_to(image_tag(check_file_type(file.file.url)) + \
|
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,
|
file.file.url,
|
||||||
:class => "file",
|
:class => "file",
|
||||||
"target" => "_blank")
|
"target" => "_blank",
|
||||||
|
"title" => file.file_title_translations[I18n.locale.to_s])
|
||||||
}.inject(:+)
|
}.inject(:+)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -66,11 +66,11 @@ module Panel::PersonalJournal::Desktop::JournalPagesHelper
|
||||||
def link_publication_file publication
|
def link_publication_file publication
|
||||||
publication.writing_journal_files.map{|file|
|
publication.writing_journal_files.map{|file|
|
||||||
link_to(image_tag(check_file_type(file.file.url)) + \
|
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,
|
file.file.url,
|
||||||
:class => "file",
|
:class => "file",
|
||||||
"target" => "_blank",
|
"target" => "_blank",
|
||||||
"title" => file.title)
|
"title" => file.file_title_translations[I18n.locale.to_s])
|
||||||
}.inject(:+)
|
}.inject(:+)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ module Panel::PersonalLab::Desktop::PersonalLabsHelper
|
||||||
def publication_record publication, view
|
def publication_record publication, view
|
||||||
content_tag :li,
|
content_tag :li,
|
||||||
"item" => "true",
|
"item" => "true",
|
||||||
:class => "list_t_item" do
|
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" }" do
|
||||||
marker + \
|
marker + \
|
||||||
content(publication, view) + \
|
content(publication, view) + \
|
||||||
edit_or_delete(publication)
|
edit_or_delete(publication)
|
||||||
|
@ -65,10 +65,11 @@ module Panel::PersonalLab::Desktop::PersonalLabsHelper
|
||||||
def link_publication_file publication
|
def link_publication_file publication
|
||||||
publication.lab_files.map{|file|
|
publication.lab_files.map{|file|
|
||||||
link_to(image_tag(check_file_type(file.file.url)) + \
|
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,
|
file.file.url,
|
||||||
:class => "file",
|
:class => "file",
|
||||||
"target" => "_blank")
|
"target" => "_blank",
|
||||||
|
"title" => file.file_title_translations[I18n.locale.to_s])
|
||||||
}.inject(:+)
|
}.inject(:+)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ module Panel::PersonalPatent::Desktop::PersonalPatentsHelper
|
||||||
def publication_record publication, view
|
def publication_record publication, view
|
||||||
content_tag :li,
|
content_tag :li,
|
||||||
"item" => "true",
|
"item" => "true",
|
||||||
:class => "list_t_item" do
|
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" }" do
|
||||||
marker + \
|
marker + \
|
||||||
content(publication, view) + \
|
content(publication, view) + \
|
||||||
edit_or_delete(publication)
|
edit_or_delete(publication)
|
||||||
|
@ -65,10 +65,11 @@ module Panel::PersonalPatent::Desktop::PersonalPatentsHelper
|
||||||
def link_publication_file publication
|
def link_publication_file publication
|
||||||
publication.writing_patent_files.map{|file|
|
publication.writing_patent_files.map{|file|
|
||||||
link_to(image_tag(check_file_type(file.file.url)) + \
|
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,
|
file.file.url,
|
||||||
:class => "file",
|
:class => "file",
|
||||||
"target" => "_blank")
|
"target" => "_blank",
|
||||||
|
"title" => file.file_title_translations[I18n.locale.to_s])
|
||||||
}.inject(:+)
|
}.inject(:+)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ module Panel::PersonalProject::Desktop::PersonalProjectsHelper
|
||||||
def publication_record publication, view
|
def publication_record publication, view
|
||||||
content_tag :li,
|
content_tag :li,
|
||||||
"item" => "true",
|
"item" => "true",
|
||||||
:class => "list_t_item" do
|
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" }" do
|
||||||
marker + \
|
marker + \
|
||||||
content(publication, view) + \
|
content(publication, view) + \
|
||||||
edit_or_delete(publication)
|
edit_or_delete(publication)
|
||||||
|
@ -65,10 +65,11 @@ module Panel::PersonalProject::Desktop::PersonalProjectsHelper
|
||||||
def link_publication_file publication
|
def link_publication_file publication
|
||||||
publication.project_files.map{|file|
|
publication.project_files.map{|file|
|
||||||
link_to(image_tag(check_file_type(file.file.url)) + \
|
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,
|
file.file.url,
|
||||||
:class => "file",
|
:class => "file",
|
||||||
"target" => "_blank")
|
"target" => "_blank",
|
||||||
|
"title" => file.file_title_translations[I18n.locale.to_s])
|
||||||
}.inject(:+)
|
}.inject(:+)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ module Panel::PersonalResearch::Desktop::PersonalResearchsHelper
|
||||||
def publication_record publication, view
|
def publication_record publication, view
|
||||||
content_tag :li,
|
content_tag :li,
|
||||||
"item" => "true",
|
"item" => "true",
|
||||||
:class => "list_t_item" do
|
:class => "list_t_item #{view.blank? ? '' : "#{view}_view" }" do
|
||||||
marker + \
|
marker + \
|
||||||
content(publication, view) + \
|
content(publication, view) + \
|
||||||
edit_or_delete(publication)
|
edit_or_delete(publication)
|
||||||
|
@ -65,10 +65,11 @@ module Panel::PersonalResearch::Desktop::PersonalResearchsHelper
|
||||||
def link_publication_file publication
|
def link_publication_file publication
|
||||||
publication.research_files.map{|file|
|
publication.research_files.map{|file|
|
||||||
link_to(image_tag(check_file_type(file.file.url)) + \
|
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,
|
file.file.url,
|
||||||
:class => "file",
|
:class => "file",
|
||||||
"target" => "_blank")
|
"target" => "_blank",
|
||||||
|
"title" => file.file_title_translations[I18n.locale.to_s])
|
||||||
}.inject(:+)
|
}.inject(:+)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue