forked from usetrmnl/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmarkup_full.html.erb
49 lines (47 loc) · 1.75 KB
/
markup_full.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<div class="screen">
<div class="layout">
<div class="columns">
<div class="column">
<div class="list">
<% stories[0..5].each_with_index do |post, idx| %>
<div class="item">
<div class="meta">
<span class="index"><%= idx + 1 %></span>
</div>
<div class="content">
<span class="title title--small"><%= post[:title] %></span>
<div class="flex gap--small">
<span class="label label--small label--underline"><%= post[:score] %> votes</span>
<span class="label label--small label--underline">by <%= post[:by] %></span>
</div>
</div>
</div>
<% end %>
</div>
</div>
<div class="column">
<div class="list">
<% stories[6..11].each_with_index do |post, idx| %>
<div class="item">
<div class="meta">
<span class="index"><%= idx + 7 %></span>
</div>
<div class="content">
<span class="title title--small"><%= post[:title] %></span>
<div class="flex gap--small">
<span class="label label--small label--underline"><%= post[:score] %> votes</span>
<span class="label label--small label--underline">by <%= post[:by] %></span>
</div>
</div>
</div>
<% end %>
</div>
</div>
</div>
</div>
<div class="title_bar">
<img class="image" src="<%= Rails.application.credentials.base_url %>/images/plugins/hacker-news--render.svg" />
<span class="title">Hacker News</span>
<span class="instance"><%= category %></span>
</div>
</div>