Merge with new_blog
This commit is contained in:
1 parent
2e86d8081f
commit
64c68fcdeb
80 files changed
+906
-79
No files matched your search
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Blog</title>
|
||||
<%= stylesheet_link_tag :all %>
|
||||
<%= javascript_include_tag :defaults %>
|
||||
<%= csrf_meta_tag %>
|
||||
</head>
|
||||
<body class="edit preview">
|
||||
<div class="wapper">
|
||||
<%= yield %>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,4 @@
|
||||
<%= stylesheet_link_tag "production"%>
|
||||
<div class="wapper">
|
||||
<%= yield %>
|
||||
</div>
|
||||
@@ -0,0 +1,5 @@
|
||||
<%=stylesheet_link_tag "NewBlog/application"%>
|
||||
<h2><%=@post.title%></h2>
|
||||
<p>
|
||||
<%= @post.body%>
|
||||
</p>
|
||||
@@ -0,0 +1,14 @@
|
||||
<%=stylesheet_link_tag "NewBlog/application"%>
|
||||
<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>
|
||||
@@ -0,0 +1,5 @@
|
||||
<%=stylesheet_link_tag "NewBlog/application"%>
|
||||
<h1><%= @post.title %> </h1>
|
||||
<p>
|
||||
<%= @post.body %>
|
||||
</p>
|
||||
Reference in new issue
Block a user