@@ -44,18 +44,19 @@ template(name="listingRow")
44
44
.file-name #{name}
45
45
br
46
46
.file-info
47
- if compare userId ' is' currentUser ._id
48
- unless meta .secured
49
- span( title ="{{#if meta.unlisted}}Unlisted{{else}}Visible to everyone{{/if}}" )
50
- i.fa.fa-fw ( class ="fa-eye{{#if meta.unlisted}}-slash{{/if}}" )
47
+ if userId
48
+ if compare userId ' is' currentUser ._id
49
+ unless meta .secured
50
+ span( title ="{{#if meta.unlisted}}Unlisted{{else}}Visible to everyone{{/if}}" )
51
+ i.fa.fa-fw ( class ="fa-eye{{#if meta.unlisted}}-slash{{/if}}" )
52
+ |
53
+ | ·
54
+ |
55
+ span( title ="{{#if meta.secured}}Only you can see this file{{else}}Publicity availble file{{/if}}" )
56
+ i.fa.fa-fw ( class ="fa-{{#unless meta.secured}}un{{/unless}}lock" )
51
57
|
52
58
| ·
53
59
|
54
- span( title ="{{#if meta.secured}}Only you can see this file{{else}}Publicity availble file{{/if}}" )
55
- i.fa.fa-fw ( class ="fa-{{#unless meta.secured}}un{{/unless}}lock" )
56
- |
57
- | ·
58
- |
59
60
span.file-size ( title ="File size" ) {{filesize size}}
60
61
|
61
62
| ·
@@ -65,7 +66,8 @@ template(name="listingRow")
65
66
| ·
66
67
|
67
68
span.file-downloads ( title ="File was downloaded for #{meta .downloads } times" ) #{meta .downloads }
68
- if compare userId ' is' currentUser ._id
69
- td.file-settings.width-1 ( data-show-settings )
70
- a( href ="#" title ="{{#if showSettings}}Close Settings{{else}}You owns this file: Edit Settings{{/if}}" class ="{{#unless showSettings}}show-settings{{/unless}}" )
71
- i.fa ( class ="fa-{{#if showSettings}}times{{else}}gear{{/if}}" )
69
+ if userId
70
+ if compare userId ' is' currentUser ._id
71
+ td.file-settings.width-1 ( data-show-settings )
72
+ a( href ="#" title ="{{#if showSettings}}Close Settings{{else}}You owns this file: Edit Settings{{/if}}" class ="{{#unless showSettings}}show-settings{{/unless}}" )
73
+ i.fa ( class ="fa-{{#if showSettings}}times{{else}}gear{{/if}}" )
0 commit comments