Mercurial > hg > soundsoftware-site
changeset 719:3f7bea56f35b cannam
Adjust publications layout (experimentally) to resemble traditional practice a bit more
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Mon, 17 Oct 2011 16:58:32 +0100 |
parents | fce7374e48b7 |
children | 5eb7efd59ed7 |
files | vendor/plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb vendor/plugins/redmine_bibliography/assets/stylesheets/bibliography.css |
diffstat | 2 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb Tue Oct 04 10:55:00 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/views/projects/_bibliography_box.html.erb Mon Oct 17 16:58:32 2011 +0100 @@ -7,18 +7,16 @@ <dl> <% @project.publications.each do |publication| %> <dt> - <%= link_to publication.title, :controller => 'publications', :action => 'show', :id => publication, :project_id => @project %> - </dt> - <dd> <span class="authors"> - <%= publication.authorships.map { |a| h a.name_on_paper }.join(', ') %> + <%= publication.authorships.map { |a| h a.name_on_paper }.join(', ') %><% if !publication.authorships.empty? %>.<% end %> </span> + <span class="title"><%= link_to publication.title, :controller => 'publications', :action => 'show', :id => publication, :project_id => @project %></span> <% if publication.bibtex_entry.year.to_s != "" %> <span class="year"> - <%= publication.bibtex_entry.year %> + (<%= publication.bibtex_entry.year %>) </span> <% end %> - </dd> + </dt><dd></dd> <% end -%> </dl> </div>
--- a/vendor/plugins/redmine_bibliography/assets/stylesheets/bibliography.css Tue Oct 04 10:55:00 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/assets/stylesheets/bibliography.css Mon Oct 17 16:58:32 2011 +0100 @@ -39,6 +39,7 @@ div#bibliography dd { margin-bottom: 1em; padding-left: 18px; font-size: 0.9em; } div#bibliography .box dd { margin-bottom: 0.6em; padding-left: 0; } div#bibliography dd .authors { font-style: italic; } +div#bibliography dt .title { font-style: italic; } div#bibliography dd span.authors { color: #808080; } div#bibliography dd span.year { padding-left: 0.6em; }