Remove production.css
This commit is contained in:
1 parent
0e252cf93c
commit
d47db8e395
4 files changed
+32
-17
No files matched your search
@@ -7,3 +7,15 @@
|
||||
font-size: large;
|
||||
background-color: green;
|
||||
}
|
||||
|
||||
.widget_index {
|
||||
width: 200px;
|
||||
height: 120px;
|
||||
border: solid;
|
||||
}
|
||||
|
||||
.widget_latest_post{
|
||||
width: 200px;
|
||||
height: 120px;
|
||||
border: solid;
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
<%= stylesheet_link_tag "production"%>
|
||||
<div class="production">
|
||||
<%= yield %>
|
||||
</div>
|
||||
@@ -1,14 +1,16 @@
|
||||
<%=stylesheet_link_tag "NewBlog/application"%>
|
||||
<table>
|
||||
<tr>
|
||||
<th><%= t('blog.title') %></th>
|
||||
<th><%= t('blog.body') %></th>
|
||||
</tr>
|
||||
<div class="widget_index">
|
||||
<table>
|
||||
<tr>
|
||||
<th><%= t('blog.title') %></th>
|
||||
<th><%= t('blog.body') %></th>
|
||||
</tr>
|
||||
|
||||
<% @posts.each do |post| %>
|
||||
<tr>
|
||||
<td><%= post.title %></td>
|
||||
<td><%= post.body.truncate(14) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
<% @posts.each do |post| %>
|
||||
<tr>
|
||||
<td><%= link_to post.title,panel_blog_post_path(post) %></td>
|
||||
<td><%= post.body.truncate(14) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
</div>
|
||||
+6
-4
@@ -1,5 +1,7 @@
|
||||
<%=stylesheet_link_tag "NewBlog/application"%>
|
||||
<h2><%= @post.title %> </h2>
|
||||
<p>
|
||||
<%= @post.body %>
|
||||
</p>
|
||||
<div class="widget_latest_post">
|
||||
<h2><%= @post.title %> </h2>
|
||||
<p>
|
||||
<%= @post.body %>
|
||||
</p>
|
||||
</div>
|
||||
Reference in new issue
Block a user