This commit is contained in:
Adler Neves 2019-12-28 00:04:19 -03:00
parent 44fac3c1b1
commit 1e4684fb74
4 changed files with 26 additions and 7 deletions

8
tpl/artist.haml Normal file
View File

@ -0,0 +1,8 @@
%span.badge{"onclick": "filterArtist({{artistkey|tojson}})"}
= artist.name
- for sn in artist['@']
- with si=social[sn]
%span.badge
%a{'href': '{{artist[sn]}}'}
%i{'aria-hidden': 'true', 'class': 'fa fa-{{si["icon"]}}'}
= si['name']

View File

@ -7,24 +7,29 @@
%span %span
%i.fa.fa-calendar-check-o{'aria-hidden': 'true'} %i.fa.fa-calendar-check-o{'aria-hidden': 'true'}
Completed on: Completed on:
%span.month= 'Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec'.split(',')[info['date'][1]-1] - with dt=info['date']
%span.day= info['date'][2]|string + (['st', 'nd', 'rd']+['th']*17+['st', 'nd', 'rd']+['th']*7+['st'])[info['date'][2]-1] + ', ' - include 'datefmt.html'
%span.year= info['date'][0]|string
.artist .artist
%span %span
%i.fa.fa-paint-brush{'aria-hidden': 'true'} %i.fa.fa-paint-brush{'aria-hidden': 'true'}
Artist: Artist:
= info['artist'] - with artistkey=info['artist']
- with artist=artists[artistkey]
- include 'artist.html'
.technology .technology
%span %span
%i.fa.fa-rocket{'aria-hidden': 'true'} %i.fa.fa-wrench{'aria-hidden': 'true'}
Technology: Technology:
= info['technology'] - with tagkey=info['technology']
- with tag=tags[tagkey]
- include 'tag.html'
.tags .tags
%span %span
%i.fa.fa-tags{'aria-hidden': 'true'} %i.fa.fa-tags{'aria-hidden': 'true'}
Tags: Tags:
=info['tags'] - for tagkey in info['tags']
- with tag=tags[tagkey]
- include 'tag.html'
- if info['link'] - if info['link']
.link .link
%span %span

3
tpl/datefmt.haml Normal file
View File

@ -0,0 +1,3 @@
%span.month= 'Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec'.split(',')[dt[1]-1]
%span.day= dt[2]|string + (['st', 'nd', 'rd']+['th']*17+['st', 'nd', 'rd']+['th']*7+['st'])[dt[2]-1] + ', '
%span.year= dt[0]|string

3
tpl/tag.haml Normal file
View File

@ -0,0 +1,3 @@
%span.badge{"onclick": "filterTag({{tagkey|tojson}})"}
%i{'aria-hidden': 'true', 'class': 'fa fa-{{tag["icon"]}}'}
= tag['name']