diff --git a/app/assets/stylesheets/main.css.scss b/app/assets/stylesheets/main.css.scss index f71fc96..4e700e8 100644 --- a/app/assets/stylesheets/main.css.scss +++ b/app/assets/stylesheets/main.css.scss @@ -41,7 +41,7 @@ body { .quote { margin: 0 0 40px 0; - blockquote { + .body { background: #f8f8f8; border: 1px solid #ddd; border-left: 5px solid #e8e8e8; @@ -58,10 +58,11 @@ body { } .meta { + float:left; font-size:1.0em; padding-top:10px; padding-left:20px; - float:left; + width: 60%; } .posted-date { @@ -72,6 +73,11 @@ body { padding-top: 20px; } + .tweet-this { + float: right; + padding: 23px 0px 0px 15px; + } + .navigation { margin-bottom: 25px; margin-top: 25px; diff --git a/app/views/quotes/_quote.html.erb b/app/views/quotes/_quote.html.erb index 2ff80c4..88d6f13 100644 --- a/app/views/quotes/_quote.html.erb +++ b/app/views/quotes/_quote.html.erb @@ -1,9 +1,18 @@
-
<%= quote.body %>
+
<%= quote.body %>
<%= quote.author_name%><%= quote.author_description? ? ", " : " " %> - <%= quote.author_description %> + <%= quote.author_description%> + + <% if signed_in? %> + <%= link_to "Edit", edit_quote_path(quote) %> + <%= link_to("Delete", quote, method: :delete, data: { confirm: "Are you sure?" } ) %> + <% end %>
+
+ + +
<%= link_to(quote.created_at.strftime("%b, %d, %Y"), quote_path(quote)) %>