Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h1 align="center">Listing all articles</h1>
- <% @articles.each do |article| %>
- <div class="row">
- <div class="col-xs-8 col-xs-offset-2">
- <div class="well well-lg">
- <div class="article-title">
- <%= link_to article.title, article_path(article) %>
- </div>
- <div class="article-body">
- <%= truncate(article.description, length: 100) %>
- </div>
- <div class="article-actions">
- <%= link_to "Edit this article", edit_article_path(article), class: "btn btn-xs btn-primary" %>
- <%= link_to "Delete this article", article_path(article), method: :delete,
- data: { confirm: "Are you sure you want to delete the article?"},
- class: "btn btn-xs btn-danger" %>
- </div>
- </div>
- </div>
- </div>
- <% end %>
- Add the following code to the custom.css.scss page:
- .article-title {
- font-weight: bold;
- font-size: 1.5em;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement