From d413f705a4c813501979424fc6772f77dd020af3 Mon Sep 17 00:00:00 2001 From: devin Date: Wed, 5 Dec 2012 17:45:50 +0800 Subject: [PATCH] view update --- app/assets/stylesheets/desktopmain.css | 4 +- app/views/desktop/co_authors/index.html.erb | 54 ++++++++++----------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/app/assets/stylesheets/desktopmain.css b/app/assets/stylesheets/desktopmain.css index bd239470..a7ec7a6d 100644 --- a/app/assets/stylesheets/desktopmain.css +++ b/app/assets/stylesheets/desktopmain.css @@ -304,7 +304,9 @@ a:focus { outline: none; } font-size: 15px; vertical-align: top; } - +.toolbar .fn_btn { + display: inline-block; +} /* Setting Page */ .theme_list {} diff --git a/app/views/desktop/co_authors/index.html.erb b/app/views/desktop/co_authors/index.html.erb index b01b2569..7aacbd70 100644 --- a/app/views/desktop/co_authors/index.html.erb +++ b/app/views/desktop/co_authors/index.html.erb @@ -1,28 +1,26 @@ -

list all coauthor

-<%= link_to "New Co-Author", new_desktop_co_author_path, :class=>"bt-co-author" %> -<%= link_to "New Type", desktop_co_author_relations_path, :class=>"bt-new-type" %> - - - - - - - - - - - - -<% @co_authors.each do |co_author| %> - - - - - - - -<% end %> - -
NameEMailType
<%= co_author.co_author %><%= co_author.email %><%= @co_author_relations.find(co_author.co_author_relations_id).relation \ - unless co_author.co_author_relations_id.nil?%><%= link_to 'Edit', edit_desktop_co_author_path(co_author), :class => "bt-edit" %><%= link_to 'Destroy', desktop_co_author_path(co_author), method: :delete, confirm: 'Are you sure?', :class=>"bt-delete" %>
-
+
+
+ <%= link_to "New Co-Author", new_desktop_co_author_path, :class=>"bt-co-author fn_btn hp hh2 thmc2 thmtxt" %> + <%= link_to "New Type", desktop_co_author_relations_path, :class=>"bt-new-type fn_btn hp hh2 thmc2 thmtxt" %> +
+
+<% @co_authors.each_with_index do |co_author,i| %> + <% if ( i % 5 ) == 0 %> +
+ +
+ <% end %> +<% end %> \ No newline at end of file