-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchives.html.erb
71 lines (67 loc) · 2.29 KB
/
archives.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&subset=cyrillic" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/fonts.css">
<link rel="stylesheet" type="text/css" href="css/normalize.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>Archives</title>
</head>
<body class="inner-page">
<header class="main-header inner-main-header">
<div class="container clearfix">
<div class="logo">
<a href="/">
<img src="/img/rebel-logo-blue.svg" width="28px" height="31px" alt="rebel-logo">
<span>rebel weekly</span>
</a>
</div>
<nav class="main-nav">
<ul>
<li class="search-block">
<form action="" method="get">
<input class="search" type="search" name="search">
</form>
</li>
<li class="search-item"><a href="#">Поиск</a></li>
<li><a href="/">Последний выпуск</a></li>
</ul>
</nav>
</div>
</header>
<main class="container">
<h1 class="title">архив</h1>
<% issues.reverse.each do |issue| %>
<div class="content-archive">
<h1>
<a href="<%= issue.url %>">Выпуск #<%= issue.id %></a> -
<small>
<time datetime="<%= issue.data %>">
<%= issue.data.strftime("%d/%m/%Y") %>
</time>
</small>
</h1>
<ul class="item-list">
<% issue.links.shuffle.first(5).each do |list_item| %>
<li><%= list_item %></li>
<% end %>
</ul>
</div>
<% end %>
</main>
<footer>
<div class="container">
<a href="/">
<picture>
<source media="(min-width: 1440px)" srcset="/img/rebel-weekly-logo-light/rebel-weekly-logo-light@3x.png">
<source media="(min-width: 1024px)" srcset="/img/rebel-weekly-logo-light/rebel-weekly-logo-light@2x.png">
<img src="/img/rebel-weekly-logo-light/rebel-weekly-logo-light.png" alt="rebel-weekly-light">
</picture>
</a>
</div>
</footer>
</body>
</html>