style toots
This commit is contained in:
parent
804d714eea
commit
a9f365eb44
2
main.js
2
main.js
@ -14,7 +14,7 @@ var jsonParsedLikes, jsonParsedOutbox;
|
|||||||
* You can filter the export in the following vars
|
* You can filter the export in the following vars
|
||||||
*/
|
*/
|
||||||
const min_length = 0; // minmum character length of toots to display
|
const min_length = 0; // minmum character length of toots to display
|
||||||
const max_toots = 10// maximum length
|
const max_toots = 20// maximum length
|
||||||
const filterBiggerTootsBeforeSlicing = false; // filter only long toots
|
const filterBiggerTootsBeforeSlicing = false; // filter only long toots
|
||||||
const filterOnlyHavingMedias = false; // filter only toots having medias
|
const filterOnlyHavingMedias = false; // filter only toots having medias
|
||||||
const displayMedias = true; // display medias in toots
|
const displayMedias = true; // display medias in toots
|
||||||
|
@ -8,17 +8,16 @@ div.container
|
|||||||
#{toot_counter = outbox.length}
|
#{toot_counter = outbox.length}
|
||||||
each oredredItem in outbox
|
each oredredItem in outbox
|
||||||
article
|
article
|
||||||
|
div.status.status-public.flex
|
||||||
div.status.status-public
|
p.toot_counter= (toot_counter-=1)
|
||||||
p.toot_counter= toot_counter-=1
|
|
||||||
a(href=oredredItem['object'].url)
|
a(href=oredredItem['object'].url)
|
||||||
i.fa.fa-paperplane-o
|
i.fa.fa-paperplane-o
|
||||||
img.header(src='/avatar.gif')
|
img.header(src='/avatar.gif')
|
||||||
div.date-published=oredredItem['object'].published
|
div.date-published=oredredItem['object'].published
|
||||||
blockquote.published(!=oredredItem['object'].content)
|
blockquote.pl-6.published(!=oredredItem['object'].content)
|
||||||
if oredredItem['object'].attachment && oredredItem['object'].attachment.length
|
if oredredItem['object'].attachment && oredredItem['object'].attachment.length
|
||||||
if(!displayMedias)
|
if(!displayMedias)
|
||||||
sub.font-medium.no-media Medias are not displayed
|
sub.font-medium.no-media.bg-orange-300.p-2 Medias are not displayed
|
||||||
if(displayMedias)
|
if(displayMedias)
|
||||||
each media in oredredItem['object'].attachment
|
each media in oredredItem['object'].attachment
|
||||||
include medias.pug
|
include medias.pug
|
||||||
|
Loading…
Reference in New Issue
Block a user