mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[enh] Show item date on security alert page.
This commit is contained in:
parent
143928f7c7
commit
e6f09d4a6f
2 changed files with 9 additions and 6 deletions
|
@ -1606,12 +1606,12 @@ app = Sammy('#main', function (sam) {
|
|||
guid: $('guid', v)[0].innerHTML,
|
||||
title: $('title', v)[0].innerHTML,
|
||||
url: $('link', v)[0].innerHTML,
|
||||
desc: $('description', v)[0].textContent
|
||||
desc: $('description', v)[0].textContent,
|
||||
date: $('pubDate', v)[0].innerHTML.split(' +')[0],
|
||||
}
|
||||
data.items.push(item);
|
||||
});
|
||||
|
||||
console.log(data);
|
||||
c.view('tools/tools_security_feed', data);
|
||||
})
|
||||
.fail(function() {
|
||||
|
|
|
@ -12,10 +12,13 @@
|
|||
<div class="list-group-item">
|
||||
<!-- <a href="{{url}}" class="fa-chevron-right pull-right"></a> -->
|
||||
<h2 class="list-group-item-heading"><a href="{{url}}">{{title}}</a></h2>
|
||||
<div class="list-group-item-text">{{{desc}}}</div>
|
||||
<p class="text-right">
|
||||
<a href="{{url}}" class="btn btn-default">{{t 'read_more'}}</a>
|
||||
</p>
|
||||
<div class="list-group-item-text">
|
||||
<p class="pub-date"><em>{{date}}</em></p>
|
||||
{{{desc}}}
|
||||
<p class="text-right">
|
||||
<a href="{{url}}" class="btn btn-default">{{t 'read_more'}}</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{{/items}}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue