-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
arugin
authored and
arugin
committed
Dec 3, 2013
1 parent
9bb5d60
commit 9b92aa4
Showing
25 changed files
with
89 additions
and
88 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.
File renamed without changes.
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
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
- if @articles.blank? | ||
%p= t("NO_ARTICLES_FOUND") | ||
- else | ||
%ul.articles-card-list | ||
%ul.items-card-list | ||
- @articles.each do |article| | ||
%li.article | ||
= render :partial => 'article_cool_block', :locals => { :article => article } | ||
%li.item | ||
= render :partial => 'common/cool_block', locals: { item: article, collection: 'articles' } | ||
|
||
= paginate @articles, :remote => true |
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,2 @@ | ||
= link_to article_path(item) do | ||
= image_tag(item.get_logo_url.nil? ? '/images/common/filer.png': item.get_logo_url, title: item.title) |
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,6 @@ | ||
- if item.is_garbage | ||
= link_to draft_article_path(item) do | ||
%strong= item.title | ||
- else | ||
= link_to article_path(item) do | ||
%strong= item.title |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.item-wrapper | ||
.item-card | ||
.item-thumb | ||
= render partial: "#{collection}/thumb", locals: {item: item} | ||
%h4 | ||
= render partial: "#{collection}/title", locals: {item: item} | ||
%span | ||
= link_to user_profile_path(item.author) do | ||
= "от автора #{item.author.name}" | ||
.clear | ||
- unless item.content.nil? | ||
%p | ||
= item.tiny_content.html_safe | ||
%ul.item-meta | ||
%li.publishDate | ||
%span | ||
%i.icon-leaf{title: t(:PUBLISH_FULL)} | ||
= item.created_at.nil? ? 'До начала времен': l(item.created_at.in_time_zone, format: :short) | ||
|
||
%ul.item-stats | ||
%li.long | ||
= render partial: 'common/views_count', locals: {subject: item, growth: true} | ||
%li.views-wrapper | ||
= render partial: 'common/comments_count', locals: {subject: item} | ||
%li.floated-vote | ||
= render partial: 'common/rate_count', locals: {subject: item} | ||
|
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.fotorama{data:{width:'210px',ratio:"800/600", keyboard: 'true'}} | ||
%a{href: item.src} |
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,2 @@ | ||
= link_to content_base_content_path(item) do | ||
%strong= item.title |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module MySite | ||
class Application | ||
VERSION = "1.0.2" | ||
VERSION = "1.0.3" | ||
|
||
def self.version | ||
"v. #{VERSION}" | ||
|