lines-engine 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/app/views/lines/articles/_article.html.erb +1 -1
- data/app/views/lines/articles/_article_collection.html.erb +1 -1
- data/app/views/lines/articles/_article_small.html.erb +22 -0
- data/app/views/lines/articles/index.html.erb +2 -3
- data/lib/lines/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7707a5c9fa3b93b41456dfe4fa66b750d79544cf
|
4
|
+
data.tar.gz: 18212bc967c89d0eaba2d3fe2c4410ca4b68ee8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2405705ea0961b7a61a9bb9207850aa7037cd6f8d4524e7eb83490f45640e3e3eb97a1abeb597697a46471bc447a8034e1335af4379c0475f79d4454e2d5f84c
|
7
|
+
data.tar.gz: d034478226878ddd5ad6b517032c6472111cdbe86e7ee78937a5e08a8e051cb3046a1d01cedce723711c3e297a25b7f76211052211fafe093d933878e67cf215
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
<%= render
|
1
|
+
<%= render partial: 'article_small', locals: { article_small: article_collection, article_counter: article_collection_counter } %>
|
2
2
|
|
3
3
|
<% if (article_collection_counter % 2) != 0 %>
|
4
4
|
<div class="breaker" style="clear:both;height:1px;line-height:1px"> </div>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<div class="article small">
|
2
|
+
<% cache "#{article_small}_small" do %>
|
3
|
+
<div class="hero_image">
|
4
|
+
<%= link_to article_path(article_small), { style: "background-image:url('#{article_small.image_url}')" } do %>
|
5
|
+
<img src="<%= article_small.image_url %>" alt="<%= article_small.title %>" />
|
6
|
+
<% end %>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<div class="article_header">
|
10
|
+
<h1><%= link_to article_small.title, article_path(article_small) %></h1>
|
11
|
+
<h2><%= article_small.sub_title %></h2>
|
12
|
+
<div class="author_name"><span>by</span> <%= display_article_authors(article_small) %></div>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<div class="article_teaser">
|
16
|
+
<%= render_teaser(article_small) %>
|
17
|
+
<div class="more-link">
|
18
|
+
<%= link_to "Read full article", article_path(article_small) %>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
<% end %>
|
22
|
+
</div>
|
@@ -1,12 +1,11 @@
|
|
1
1
|
<% content_for :head, auto_discovery_link_tag(:atom, articles_url(format: "atom")) %>
|
2
|
-
|
3
2
|
<div class="rss">
|
4
|
-
<%= link_to image_tag("
|
3
|
+
<%= link_to image_tag("ic_rss.png"), articles_url(format: "atom") %>
|
5
4
|
</div>
|
6
5
|
|
7
6
|
<div id="articles">
|
8
7
|
<%= render partial: 'article', locals: { article: @first_article, article_counter: -1 } unless @first_article.nil? %>
|
9
|
-
<%= render partial:
|
8
|
+
<%= render partial: 'article_collection', collection: @articles %>
|
10
9
|
</div>
|
11
10
|
|
12
11
|
<% if @articles.num_pages > 1 %>
|
data/lib/lines/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lines-engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Opoloo GbR
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: orm_adapter
|
@@ -687,6 +687,7 @@ files:
|
|
687
687
|
- app/views/lines/admin/pictures/destroy.js.erb
|
688
688
|
- app/views/lines/articles/_article.html.erb
|
689
689
|
- app/views/lines/articles/_article_collection.html.erb
|
690
|
+
- app/views/lines/articles/_article_small.html.erb
|
690
691
|
- app/views/lines/articles/index.atom.builder
|
691
692
|
- app/views/lines/articles/index.html.erb
|
692
693
|
- app/views/lines/articles/show.html.erb
|