|
8 | 8 |
|
9 | 9 | <%= render layout: "layouts/decidim/shared/layout_center" do %> |
10 | 10 |
|
11 | | - <% scope = "decidim.elections.elections.election_log" %> |
12 | | - |
13 | 11 | <div class="text-center py-10"> |
14 | 12 | <h1 class="h3 md:h1 decorator inline-block text-left mb-12"> |
15 | | - <%= t("title", scope:) %> |
| 13 | + <%= t("decidim.elections.elections.election_log.title") %> |
16 | 14 | </h1> |
17 | 15 |
|
18 | 16 | <div class="text-lg text-gray-2 text-left"> |
19 | | - <%= t("description", scope:) %> |
| 17 | + <%= t("decidim.elections.elections.election_log.description") %> |
20 | 18 | </div> |
21 | 19 | </div> |
22 | 20 |
|
|
31 | 29 | <span class="election-log__time" data-time></span> |
32 | 30 |
|
33 | 31 | <h2 class="h4 text-secondary"> |
34 | | - <%= t("creation_title", scope:) %> |
35 | | - <span data-no-election-created><span class="label"><%= t("not_created", scope:) %></span></span> |
36 | | - <span data-election-created hidden><span class="label success"><%= t("complete", scope:) %></span></span> |
| 32 | + <%= t("decidim.elections.elections.election_log.creation_title") %> |
| 33 | + <span data-no-election-created><span class="label"><%= t("decidim.elections.elections.election_log.not_created") %></span></span> |
| 34 | + <span data-election-created hidden><span class="label success"><%= t("decidim.elections.elections.election_log.complete") %></span></span> |
37 | 35 | </h2> |
38 | 36 |
|
39 | 37 | <span data-no-election-created> |
40 | | - <%= t("creation_description.not_created", scope:) %> |
| 38 | + <%= t("decidim.elections.elections.election_log.creation_description.not_created") %> |
41 | 39 | </span> |
42 | 40 | <span data-election-created hidden> |
43 | | - <%= t("creation_description.complete", scope:) %> |
| 41 | + <%= t("decidim.elections.elections.election_log.creation_description.complete") %> |
44 | 42 | </span> |
45 | 43 |
|
46 | | - <span class="election-log__hash"><strong><%= t("chained_hash", scope:) %></strong> <span data-chained-hash></span></span> |
| 44 | + <span class="election-log__hash"><strong><%= t("decidim.elections.elections.election_log.chained_hash") %></strong> <span data-chained-hash></span></span> |
47 | 45 | </div> |
48 | 46 |
|
49 | 47 | <!-- KEY CEREMONY STEP --> |
50 | 48 | <div id="key-ceremony-step" class="election-log__entry"> |
51 | 49 | <span class="election-log__time" data-time></span> |
52 | 50 |
|
53 | 51 | <h2 class="h4 text-secondary"> |
54 | | - <%= t("key_ceremony_title", scope:) %> |
55 | | - <span data-key-ceremony-not-started><span class="label"><%= t("not_started", scope:) %></span></span> |
56 | | - <span data-key-ceremony-started hidden><span class="label warning"><%= t("started", scope:) %></span></span> |
57 | | - <span data-key-ceremony-completed hidden><span class="label success"><%= t("complete", scope:) %></span></span> |
| 52 | + <%= t("decidim.elections.elections.election_log.key_ceremony_title") %> |
| 53 | + <span data-key-ceremony-not-started><span class="label"><%= t("decidim.elections.elections.election_log.not_started") %></span></span> |
| 54 | + <span data-key-ceremony-started hidden><span class="label warning"><%= t("decidim.elections.elections.election_log.started") %></span></span> |
| 55 | + <span data-key-ceremony-completed hidden><span class="label success"><%= t("decidim.elections.elections.election_log.complete") %></span></span> |
58 | 56 | </h2> |
59 | 57 |
|
60 | 58 | <span data-key-ceremony-not-started> |
61 | | - <%= t("key_ceremony_description.not_started", scope:) %> |
| 59 | + <%= t("decidim.elections.elections.election_log.key_ceremony_description.not_started") %> |
62 | 60 | </span> |
63 | 61 | <span data-key-ceremony-started hidden> |
64 | | - <%= t("key_ceremony_description.started", scope:) %> |
| 62 | + <%= t("decidim.elections.elections.election_log.key_ceremony_description.started") %> |
65 | 63 | </span> |
66 | 64 | <span data-key-ceremony-completed hidden> |
67 | | - <%= t("key_ceremony_description.complete", scope:) %> |
| 65 | + <%= t("decidim.elections.elections.election_log.key_ceremony_description.complete") %> |
68 | 66 | </span> |
69 | 67 |
|
70 | | - <span class="election-log__hash"><strong><%= t("chained_hash", scope:) %></strong> <span data-chained-hash></span></span> |
| 68 | + <span class="election-log__hash"><strong><%= t("decidim.elections.elections.election_log.chained_hash") %></strong> <span data-chained-hash></span></span> |
71 | 69 | </div> |
72 | 70 |
|
73 | 71 | <!-- VOTE STEP --> |
74 | 72 | <div id="vote-step" class="election-log__entry"> |
75 | 73 | <span class="election-log__time" data-time></span> |
76 | 74 |
|
77 | 75 | <h2 class="h4 text-secondary"> |
78 | | - <%= t("vote_title", scope:) %> |
79 | | - <span data-vote-not-started><span class="label"><%= t("not_started", scope:) %></span></span> |
80 | | - <span data-vote-started hidden><span class="label success"><%= t("started", scope:) %></span></span> |
81 | | - <span data-vote-completed hidden><span class="label success"><%= t("complete", scope:) %></span></span> |
| 76 | + <%= t("decidim.elections.elections.election_log.vote_title") %> |
| 77 | + <span data-vote-not-started><span class="label"><%= t("decidim.elections.elections.election_log.not_started") %></span></span> |
| 78 | + <span data-vote-started hidden><span class="label success"><%= t("decidim.elections.elections.election_log.started") %></span></span> |
| 79 | + <span data-vote-completed hidden><span class="label success"><%= t("decidim.elections.elections.election_log.complete") %></span></span> |
82 | 80 | </h2> |
83 | 81 |
|
84 | 82 | <span data-vote-not-started> |
85 | | - <%= t("vote_description.not_started", scope:) %> |
| 83 | + <%= t("decidim.elections.elections.election_log.vote_description.not_started") %> |
86 | 84 | </span> |
87 | 85 | <span data-vote-started hidden> |
88 | | - <%= t("vote_description.started", scope:) %> |
| 86 | + <%= t("decidim.elections.elections.election_log.vote_description.started") %> |
89 | 87 | </span> |
90 | 88 | <span data-vote-completed hidden> |
91 | | - <%= t("vote_description.finished", scope:) %> |
| 89 | + <%= t("decidim.elections.elections.election_log.vote_description.finished") %> |
92 | 90 | </span> |
93 | 91 |
|
94 | | - <span class="election-log__hash"><strong><%= t("chained_hash", scope:) %></strong> <span data-chained-hash></span></span> |
| 92 | + <span class="election-log__hash"><strong><%= t("decidim.elections.elections.election_log.chained_hash") %></strong> <span data-chained-hash></span></span> |
95 | 93 | </div> |
96 | 94 |
|
97 | 95 | <!-- TALLY STEP --> |
98 | 96 | <div id="tally-step" class="election-log__entry"> |
99 | 97 | <span class="election-log__time" data-time></span> |
100 | 98 |
|
101 | 99 | <h2 class="h4 text-secondary"> |
102 | | - <%= t("tally_title", scope:) %> |
103 | | - <span data-tally-not-started><span class="label"><%= t("not_started", scope:) %></span></span> |
104 | | - <span data-tally-started hidden><span class="label success"><%= t("started", scope:) %></span></span> |
105 | | - <span data-tally-completed hidden><span class="label success"><%= t("complete", scope:) %></span></span> |
| 100 | + <%= t("decidim.elections.elections.election_log.tally_title") %> |
| 101 | + <span data-tally-not-started><span class="label"><%= t("decidim.elections.elections.election_log.not_started") %></span></span> |
| 102 | + <span data-tally-started hidden><span class="label success"><%= t("decidim.elections.elections.election_log.started") %></span></span> |
| 103 | + <span data-tally-completed hidden><span class="label success"><%= t("decidim.elections.elections.election_log.complete") %></span></span> |
106 | 104 | </h2> |
107 | 105 |
|
108 | 106 | <span data-tally-not-started> |
109 | | - <%= t("tally_description.not_started", scope:) %> |
| 107 | + <%= t("decidim.elections.elections.election_log.tally_description.not_started") %> |
110 | 108 | </span> |
111 | 109 | <span data-tally-started hidden> |
112 | | - <%= t("tally_description.started", scope:) %> |
| 110 | + <%= t("decidim.elections.elections.election_log.tally_description.started") %> |
113 | 111 | </span> |
114 | 112 | <span data-tally-completed hidden> |
115 | | - <%= t("tally_description.finished", scope:) %> |
| 113 | + <%= t("decidim.elections.elections.election_log.tally_description.finished") %> |
116 | 114 | </span> |
117 | 115 |
|
118 | | - <span class="election-log__hash"><strong><%= t("chained_hash", scope:) %></strong> <span data-chained-hash></span></span> |
| 116 | + <span class="election-log__hash"><strong><%= t("decidim.elections.elections.election_log.chained_hash") %></strong> <span data-chained-hash></span></span> |
119 | 117 | </div> |
120 | 118 |
|
121 | 119 | <!-- PUBLISHED RESULTS STEP --> |
122 | 120 | <div id="results-step" class="election-log__entry"> |
123 | 121 | <span class="election-log__time" data-time></span> |
124 | 122 |
|
125 | 123 | <h2 class="h4 text-secondary"> |
126 | | - <%= t("results_title", scope:) %> |
127 | | - <span data-results-not-published><span class="label"><%= t("not_published", scope:) %></span></span> |
128 | | - <span data-results-published hidden><span class="label success"><%= t("published", scope:) %></span></span> |
| 124 | + <%= t("decidim.elections.elections.election_log.results_title") %> |
| 125 | + <span data-results-not-published><span class="label"><%= t("decidim.elections.elections.election_log.not_published") %></span></span> |
| 126 | + <span data-results-published hidden><span class="label success"><%= t("decidim.elections.elections.election_log.published") %></span></span> |
129 | 127 | </h2> |
130 | 128 |
|
131 | 129 | <span data-results-not-published> |
132 | | - <%= t("results_description.not_published", scope:) %> |
| 130 | + <%= t("decidim.elections.elections.election_log.results_description.not_published") %> |
133 | 131 | </span> |
134 | 132 | <span data-results-published hidden> |
135 | | - <%= t("results_description.published", scope:) %> |
| 133 | + <%= t("decidim.elections.elections.election_log.results_description.published") %> |
136 | 134 | </span> |
137 | 135 |
|
138 | | - <span class="election-log__hash"><strong><%= t("chained_hash", scope:) %></strong> <span data-chained-hash></span></span> |
| 136 | + <span class="election-log__hash"><strong><%= t("decidim.elections.elections.election_log.chained_hash") %></strong> <span data-chained-hash></span></span> |
139 | 137 | </div> |
140 | 138 |
|
141 | 139 | <%# REDESIGN_PENDING: This block does not look like to be in use %> |
142 | 140 | <!-- VERIFIABLE RESULTS STEP --> |
143 | 141 | <div id="verifiable-results-step" class="election-log__entry"> |
144 | 142 | <h2 class="h4 text-secondary"> |
145 | | - <%= t("verifiable_results.title", scope:) %> |
| 143 | + <%= t("decidim.elections.elections.election_log.verifiable_results.title") %> |
146 | 144 | <% if election.results_published? %> |
147 | | - <span class="label success"><%= t("verify", scope:) %></span> |
| 145 | + <span class="label success"><%= t("decidim.elections.elections.election_log.verify") %></span> |
148 | 146 | <% else %> |
149 | | - <span class="label"><%= t("not_ready", scope:) %></span> |
| 147 | + <span class="label"><%= t("decidim.elections.elections.election_log.not_ready") %></span> |
150 | 148 | <% end %> |
151 | 149 | </h2> |
152 | 150 |
|
153 | 151 | <% if election.results_published? %> |
154 | | - <%= content_tag :p, sanitize(t("verifiable_results.description.ready", scope:)) %> |
| 152 | + <%= content_tag :p, sanitize(t("decidim.elections.elections.election_log.verifiable_results.description.ready")) %> |
155 | 153 | <pre class="election-log__pre">sha256sum <verifiable_election_file_path></pre> |
156 | | - <%= content_tag :p, sanitize(t("verifiable_results.how_to_verify", scope:)) %> |
| 154 | + <%= content_tag :p, sanitize(t("decidim.elections.elections.election_log.verifiable_results.how_to_verify")) %> |
157 | 155 | <pre class="election-log__pre">bin/verify <verifiable_election_file_path></pre> |
158 | 156 | <% else %> |
159 | | - <span><%= t("verifiable_results.description.not_ready", scope:) %></span> |
| 157 | + <span><%= t("decidim.elections.elections.election_log.verifiable_results.description.not_ready") %></span> |
160 | 158 | <% end %> |
161 | 159 |
|
162 | 160 | <% if election.results_published? %> |
163 | 161 | <span class="election-log__hash"> |
164 | | - <strong><%= t("verifiable_results.verifiable_file", scope:) %></strong> |
| 162 | + <strong><%= t("decidim.elections.elections.election_log.verifiable_results.verifiable_file") %></strong> |
165 | 163 | <% if election.verifiable_results_file_url.present? %> |
166 | | - <%= link_to t("download", scope:), election.verifiable_results_file_url, class: "card__button button small" %> |
| 164 | + <%= link_to t("decidim.elections.elections.election_log.download"), election.verifiable_results_file_url, class: "card__button button small" %> |
167 | 165 | <% else %> |
168 | | - <span><%= t("not_available", scope:) %></span> |
| 166 | + <span><%= t("decidim.elections.elections.election_log.not_available") %></span> |
169 | 167 | <% end %> |
170 | 168 | </span> |
171 | 169 |
|
172 | 170 | <span class="election-log__hash"> |
173 | | - <strong><%= t("verifiable_results.checksum", scope:) %></strong> |
| 171 | + <strong><%= t("decidim.elections.elections.election_log.verifiable_results.checksum") %></strong> |
174 | 172 | <% if election.verifiable_results_file_hash.present? %> |
175 | 173 | <%= election.verifiable_results_file_hash %> |
176 | 174 | <% else %> |
177 | | - <span><%= t("not_available", scope:) %></span> |
| 175 | + <span><%= t("decidim.elections.elections.election_log.not_available") %></span> |
178 | 176 | <% end %> |
179 | 177 | </span> |
180 | 178 | <% end %> |
|
0 commit comments