forked from publify/publify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
• Removes the best of widget. • Reduces the last posts from Publify blog from 5 to 3. • Displays the user's drafts instead of the lastest blog posts. • Moves the drafts up and the inbound links down
- Loading branch information
Frédéric de Villamil
committed
Aug 10, 2013
1 parent
0f3a357
commit 0b58519
Showing
5 changed files
with
21 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<h3><%= _("Your Drafts") %></h3> | ||
<div class='well'> | ||
<ul class='unstyled'> | ||
<% if @drafts.size == 0 %> | ||
<li class='alert'> | ||
<%= link_to _("No drafts yet, why don't you start and write one"), :controller => 'content', :action => 'new' %> ? | ||
</li> | ||
<% else %> | ||
<% for post in @drafts -%> | ||
<li> | ||
<h5><%= link_to(post.title, :controller => "admin/content", :action => "edit", :id => post.id) %> <%= display_date_and_time(post.created_at) %></h5> | ||
<p><%= post.body.strip_html.slice(0,300) if post.body %></p> | ||
<hr /> | ||
</li> | ||
<% end %> | ||
<% end %> | ||
</ul> | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters