diff options
-rw-r--r-- | app/views/projects/index.html.erb | 11 | ||||
-rw-r--r-- | config/locales/en.rb | 1 | ||||
-rw-r--r-- | public/stylesheets/base.css | 21 |
3 files changed, 27 insertions, 6 deletions
diff --git a/app/views/projects/index.html.erb b/app/views/projects/index.html.erb index a89c1f2..4b01a87 100644 --- a/app/views/projects/index.html.erb +++ b/app/views/projects/index.html.erb @@ -43,6 +43,11 @@ </ul> <% end -%> </div> + <% if show_new_project_link? -%> + <div id="new-project-button" class="round-10"> + <%= link_to t("views.projects.create_new"), new_project_path, :class => "shadow-2 round-10" -%> + </div> + <% end -%> <div class="clear"></div> </div> @@ -57,12 +62,6 @@ <%= will_paginate @projects -%> <% content_for :sidebar do -%> - <ul class="links"> - <% if show_new_project_link? -%> - <li class="new_project"><%= link_to t("views.projects.new"), new_project_path -%></li> - <% end -%> - </ul> - <h4><%= t("views.projects.popular") %>:</h4> <ul class="tag_list"> <% @tags.each do |tag| %> diff --git a/config/locales/en.rb b/config/locales/en.rb index 4901af9..2331e29 100644 --- a/config/locales/en.rb +++ b/config/locales/en.rb @@ -384,6 +384,7 @@ :edit_breadcrumb => "Edit Project", :update_title => "Edit project {{link}}", :new => "New project", + :create_new => "Create a new project", :popular => "Popular Categories", :new_breadcrumb => "New Project", :new_title => "Create a new project", diff --git a/public/stylesheets/base.css b/public/stylesheets/base.css index 0768555..5589a13 100644 --- a/public/stylesheets/base.css +++ b/public/stylesheets/base.css @@ -658,6 +658,27 @@ li.membership a, li.committership a {background-image: url('/images/silk/group_e margin-bottom: 0; } +#new-project-button { + margin: 10px 20px 10px 20px; + text-align:center; + width: 250px; + float: right; + background: #fff url('/images/dialog_bg_bottom.png') repeat-x bottom left; +} +#new-project-button a { + font-size: 18px; + display: block; + padding: 10px 10px 8px 10px; + border: 1px solid #ccc; + background: transparent url("/images/silk/report_add.png") no-repeat 220px center; +} + +#new-project-button a:hover { + text-decoration: none; + background-color: #390; + color: #fff; +} + /* Forms */ textarea { |