Commit 9bf6d025 authored by alexandre's avatar alexandre

metadata formatting

parent b901b17c
......@@ -1839,3 +1839,32 @@ ol {
.js-help {
text-decoration: underline dotted;
}
/* inline metadata */
/* publié le */
/* modifié le */
.score-meta dt {
/* font-weight: 500!important; */
display: inline-block;
}
.score-meta dt::after {
content: " :";
}
.score-meta dd {
display: inline;
margin: 0;
}
.score-meta dd:after{
display: block;
content: '';
}
#permissions,
.score-meta + .score-meta {
border-top: 2px solid white;
margin-top: 1em;
padding-top: 1em;
}
......@@ -33,7 +33,9 @@
<dt><%- t('Mise') %></dt>
<dd><%= stage_set.replace(/\n/g, "<br />") %></dd>
<% } %>
</dl>
<dl class="score-meta">
<!-- Extended fields -->
<% if (performance_author && (score_type === 1 || score_type === 3)) { %>
<dt class="extended"><%- t('Auteur de la performance') %></dt>
......@@ -65,6 +67,8 @@
} %>
</dd>
<% } %>
<% if (effectif && effectif !== "") { %>
<dt class="extended"><%- t('Effectif') %></dt>
<dd class="extended">
<% if (effectif && effectif.type === rangeType.exact) { %>
......@@ -77,11 +81,13 @@
<%- t('indéterminé') %>
<% } %>
</dd>
<% } %>
<% if (duration) { %>
<dt class="extended"><%- t('Durée') %></dt>
<dd class="extended"><%- duration %></dd>
<% } %>
<% if (tags) { %>
<% if (tags && tags.length) { %>
<dt class="extended"><%- t('Tags') %></dt>
<dd class="extended">
<ul>
......@@ -103,10 +109,10 @@
<dt class="extended"><%- t('Langue') %></dt>
<dd class="extended"><%- language %></dd>
<% } %>
<dt class="extended"><%- t('Publié le') %></dt>
<dd class="extended"><%- formatTimestamp(created_at) %></dd>
<dt class="extended"><%- t('Modifié le') %></dt>
<dd class="extended"><%- formatTimestamp(updated_at) %></dd>
<dt class="extended inline-dt"><%- t('Publié le') %></dt>
<dd class="extended inline-dd"><%- formatTimestamp(created_at) %></dd>
<dt class="extended inline-dt"><%- t('Modifié le') %></dt>
<dd class="extended inline-dd"><%- formatTimestamp(updated_at) %></dd>
<!-- <dt class="score-meta-expand-toggle"></dt> -->
</dl>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment