Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changes tracking reader: dashboard and view partials, etc
- Loading branch information
Showing
21 changed files
with
84 additions
and
82 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
File renamed without changes.
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,12 @@ | ||
- posts ||= @reader.posts.paginate(pagination_parameters) | ||
|
||
%h2 | ||
=t('forum_extension.count_forum_messages', :count => posts.total_entries) | ||
|
||
- if posts.empty? | ||
%p | ||
= t('forum_extension.no_posts') | ||
- else | ||
= pagination_and_summary_for(posts, t('forum_extension.post')) if posts.previous_page | ||
= render :partial => 'posts/summary', :collection => posts | ||
= pagination_and_summary_for(posts, t('forum_extension.post')) if posts.next_page |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
- render_region :main do |main| | ||
- main.edit_header do | ||
%h1 New Forum | ||
%h1 | ||
= t('forum_extension.create_forum').titlecase | ||
- main.edit_form do | ||
= render :partial => 'form' |
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,10 @@ | ||
- posts = current_reader.posts.latest(10) | ||
- if posts.any? | ||
.dashboard_module | ||
%h3 | ||
=t('forum_extension.dashboard.posts_and_comments') | ||
%ul | ||
= render :partial => 'posts/summary', :collection => posts | ||
|
||
%p | ||
= link_to t('forum_extension.new_topic'), new_post_url, :class => 'post' |
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 @@ | ||
- post ||= summary | ||
|
||
%li.post | ||
%strong | ||
= link_to_post(post, :class => 'title') | ||
%span.context | ||
- if post.comment? | ||
= t('forum_extension.comment_on') | ||
= link_to post.page.title, post.page.url | ||
= t('forum_extension.posted') | ||
- elsif post.first? | ||
= t('forum_extension.new_topic_started') | ||
- else | ||
= t('forum_extension.reply_posted') | ||
= friendly_date(post.created_at) | ||
%br | ||
%span.excerpt | ||
= truncate_words(scrub_html(post.body), 12) |
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
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
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
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
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
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