-
Notifications
You must be signed in to change notification settings - Fork 27
/
user.hamlet
71 lines (62 loc) · 3.28 KB
/
user.hamlet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
$maybe route <- mroute
<main #main_column .pv2.ph3.mh1>
<div .w-100.mw8.center>
<div .fr.nt1 style="margin-bottom:.7rem">
^{search}
<div .di>
<div .fl.pr3.dib.mb2>
<b>
<a .link href="@{UserR unamep}">#{uname}
$forall tag <- pathtags
\ + #
<a .link href="@{UserTagsR unamep (TagsP [tag])}">#{tag}
<div .fl.pr3.dib.mb2>
<span .f7.silver>#{bcount}</span>
$if isowner
<div .fl.pr3.dib.mb2>
<a .link.silver.hover-blue :isAll:.nav-active
href="@{UserR unamep}">all
‧
<a .link.silver.hover-blue :sharedp == SharedPrivate:.nav-active
href="@{UserSharedR unamep SharedPrivate}">private
‧
<a .link.silver.hover-blue :sharedp == SharedPublic:.nav-active
href="@{UserSharedR unamep SharedPublic}">public
‧
<a .link.silver.hover-blue :filterp == FilterUnread:.nav-active
href="@{UserFilterR unamep FilterUnread}">unread
‧
<a .link.silver.hover-blue :filterp == FilterUntagged:.nav-active
href="@{UserFilterR unamep FilterUntagged}">untagged
‧
<a .link.silver.hover-blue :filterp == FilterStarred:.nav-active
href="@{UserFilterR unamep FilterStarred}">starred
<div .fr.f6.pr3.dib.mb2>
$if sharedp == SharedPrivate
<a .link.gold.hover-orange href="@?{(UserFeedSharedR unamep SharedPrivate, catMaybes [mqueryp])}">RSS
$elseif sharedp == SharedPublic
<a .link.gold.hover-orange href="@?{(UserFeedSharedR unamep SharedPublic, catMaybes [mqueryp])}">RSS
$elseif filterp == FilterUnread
<a .link.gold.hover-orange href="@?{(UserFeedFilterR unamep FilterUnread, catMaybes [mqueryp])}">RSS
$elseif filterp == FilterUntagged
<a .link.gold.hover-orange href="@?{(UserFeedFilterR unamep FilterUntagged, catMaybes [mqueryp])}">RSS
$elseif filterp == FilterStarred
<a .link.gold.hover-orange href="@?{(UserFeedFilterR unamep FilterStarred, catMaybes [mqueryp])}">RSS
$else
<a .link.gold.hover-orange href="@?{(UserFeedR unamep, catMaybes [mqueryp])}">RSS
<div .cf>
^{pager}
<div .cf>
<div ##{tagCloudRenderEl}>
<div ##{renderEl} .mt3>
<div .cf>
<div .user_footer.view-delay>
^{pager}
$if (fromIntegral bcount >= limit) || (page > 1)
<div .dib.ml5>
<span .silver.mr1>per page:
<a .link.light-silver :limit == 20:.nav-active href="@?{(route, catMaybes [Just ("count", "20"), mqueryp])}"‧>20</a> ‧
<a .link.light-silver :limit == 40:.nav-active href="@?{(route, catMaybes [Just ("count", "40"), mqueryp])}"‧>40</a> ‧
<a .link.light-silver :limit == 80:.nav-active href="@?{(route, catMaybes [Just ("count", "80"), mqueryp])}"‧>80</a> ‧
<a .link.light-silver :limit == 120:.nav-active href="@?{(route, catMaybes [Just ("count", "120"), mqueryp])}"‧>120</a> ‧
<a .link.light-silver :limit == 160:.nav-active href="@?{(route, catMaybes [Just ("count", "160"), mqueryp])}"‧>160</a>