cdm: put originally_from into footer

This commit is contained in:
Andrew Dolgov 2018-12-07 23:24:59 +03:00
parent 4e06b94f76
commit d1efcb7fc0
1 changed files with 7 additions and 5 deletions

View File

@ -266,9 +266,9 @@ define(["dojo/_base/declare"], function (declare) {
if (App.isCombinedMode()) { if (App.isCombinedMode()) {
row_class += App.getInitParam("cdm_expanded") ? " expanded" : " expandable"; row_class += App.getInitParam("cdm_expanded") ? " expanded" : " expandable";
let originally_from = hl.orig_feed ? `<div> let originally_from = hl.orig_feed ? `<span>
${__('Originally from:')} <a target="_blank" rel="noopener noreferrer" href="${hl.orig_feed[1]}">${hl.orig_feed[0]}</a> ${__('Originally from:')} <a target="_blank" rel="noopener noreferrer" href="${hl.orig_feed[1]}">${hl.orig_feed[0]}</a>
</div>` : ""; </span>` : "";
let comments = ""; let comments = "";
@ -321,7 +321,6 @@ define(["dojo/_base/declare"], function (declare) {
<div id="POSTNOTE-${hl.id}">${hl.note}</div> <div id="POSTNOTE-${hl.id}">${hl.note}</div>
<div class="content-inner" lang="${hl.lang ? hl.lang : 'en'}"></div> <div class="content-inner" lang="${hl.lang ? hl.lang : 'en'}"></div>
<div class="intermediate"> <div class="intermediate">
${originally_from}
${hl.enclosures} ${hl.enclosures}
</div> </div>
<div class="footer" onclick="event.stopPropagation()"> <div class="footer" onclick="event.stopPropagation()">
@ -335,7 +334,10 @@ define(["dojo/_base/declare"], function (declare) {
${comments} ${comments}
</div> </div>
<div class="right">${hl.buttons}</div> <div class="right">
${originally_from}
${hl.buttons}
</div>
</div> </div>
</div> </div>
</div>`; </div>`;