Skip to content

Commit

Permalink
adds views counter for every story
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamed Ramezanian committed Feb 25, 2013
1 parent 6c8eb68 commit db7655c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/views/stories/_story.html.erb
Expand Up @@ -49,6 +49,11 @@
<%= t('stories.index.point') + story.total_point.to_farsi if story.approved? %>
</span>

<span>
<i class='icon-eye-open' title="تعداد نمایش"></i>
<%= t('stories.index.views_count') + story.view_counter.to_farsi %>
</span>

<span>
<i class='icon-user' title="نویسنده"></i>
<%= user_name(story) %>
Expand Down
1 change: 1 addition & 0 deletions config/locales/fa.yml
Expand Up @@ -204,6 +204,7 @@ fa:
title: "تازه‌ترین‌ها"
new: "خبری جدید بنویسید"
point: "امتیاز: "
views_count: "نمایش: "
new:
title: 'خبر جدید'
edit:
Expand Down

0 comments on commit db7655c

Please sign in to comment.