From 6aa8903c11dfdaa8a042cc2da639e1f6962c36f3 Mon Sep 17 00:00:00 2001 From: Luke Barratt Date: Fri, 2 May 2014 09:06:01 +0100 Subject: [PATCH] Update button copy Improve news archive --- app/assets/stylesheets/_variables.scss | 4 ++-- app/assets/stylesheets/pages/_news.scss | 15 +++++++++++++++ app/views/articles/_list.html.erb | 22 +++++++++------------- app/views/articles/news_archive.html.erb | 14 +++++--------- app/views/bans/index.html.erb | 8 ++++---- 5 files changed, 35 insertions(+), 28 deletions(-) diff --git a/app/assets/stylesheets/_variables.scss b/app/assets/stylesheets/_variables.scss index 6c114b9..89ce236 100644 --- a/app/assets/stylesheets/_variables.scss +++ b/app/assets/stylesheets/_variables.scss @@ -58,8 +58,8 @@ $dark-gray: #21262A; $medium-gray: #2F383D; -$light-blue: darken(#2FB0E7, 10); -$light-gray: darken(#ECF1F5, 10); +$light-blue: darken(#2FB0E7, 5); +$light-gray: darken(#ECF1F5, 5); $light-red: #e56c69; $light-yellow: #FFF6BF; $light-green: #1f7f5c; diff --git a/app/assets/stylesheets/pages/_news.scss b/app/assets/stylesheets/pages/_news.scss index 124b021..31ef3a2 100644 --- a/app/assets/stylesheets/pages/_news.scss +++ b/app/assets/stylesheets/pages/_news.scss @@ -83,6 +83,21 @@ div.article-links { } } +table.articles.archive { + + .title { + width: 50%; + } + + .date { + width: 20%; + } + + .author { + width: 20%; + } +} + /* Article Form */ diff --git a/app/views/articles/_list.html.erb b/app/views/articles/_list.html.erb index e3b0120..9be0226 100644 --- a/app/views/articles/_list.html.erb +++ b/app/views/articles/_list.html.erb @@ -1,25 +1,21 @@ - +
- - - - - - + + + + <% articles.each do |article| %> - + - - - diff --git a/app/views/articles/news_archive.html.erb b/app/views/articles/news_archive.html.erb index 14d5420..e3eb825 100644 --- a/app/views/articles/news_archive.html.erb +++ b/app/views/articles/news_archive.html.erb @@ -1,11 +1,7 @@ -
-

- News Archive -

+

News Archive

- <%= render :partial => "list", :locals => {:articles => @news} %> +<%= render partial: 'list', locals: { articles: @news } %> - <% if cuser and cuser.admin? %> - <%= link_to 'New News', new_article_path %> - <% end %> -
+<% if cuser and cuser.admin? %> + <%= link_to 'New Article', new_article_path, class: 'button' %> +<% end %> \ No newline at end of file diff --git a/app/views/bans/index.html.erb b/app/views/bans/index.html.erb index 003d8f9..6dffffc 100644 --- a/app/views/bans/index.html.erb +++ b/app/views/bans/index.html.erb @@ -1,14 +1,14 @@
-

Active bans

+

Active Bans

- <%= link_to 'New ban', new_ban_path, class: 'button' %> + <%= link_to 'New Ban', new_ban_path, class: 'button' %> <%= render partial: "list", locals: { bans: @bans.effective } %> -

Ban history

+

Ban History

<%= render partial: "list", locals: { bans: @bans.ineffective } %> - <%= link_to 'New ban', new_ban_path, class: 'button' %> + <%= link_to 'New Ban', new_ban_path, class: 'button' %>
\ No newline at end of file
TitleCategoryDateAuthorCmts.TitleDateAuthor
<%= namelink article, 35 %><%= namelink article.category %> <%= shortdate article.created_at %> <%= namelink article.user %><%= h article.comments.count %> + <% if article.can_update? cuser %> - <%= link_to 'Edit', edit_article_path(article) %> + <%= link_to icon('pencil'), edit_article_path(article) %> <% end; if article.can_destroy? cuser %> - <%= link_to 'Destroy', article, :confirm => 'Are you sure?', :method => :delete %> + <%= link_to icon('times'), article, confirm: 'Are you sure?', method: :delete %> <% end %>