Use a lock icon (instead of download icon) when there's no permission to download

This commit is contained in:
Pablo Vazquez 2016-11-08 15:05:44 +01:00
parent 724fe6ceeb
commit d272896787
6 changed files with 10 additions and 2 deletions

View File

@ -1366,6 +1366,11 @@ section.node-preview.group
i.icon-dropdown-menu
padding-left: 10px
&.disabled
border-color: $color-text-dark-hint
color: $color-text-dark-hint
+stripes(rgba($color-text-dark-hint, .1), rgba($color-text-dark-hint, .2), -45deg, 28px)
/* Videos have dropdown caret, so paddit 5px less */
&.video.download
margin-left: auto

View File

@ -67,6 +67,7 @@
i.pi-download
| {% else %}
button.btn.btn-default.disabled.sorry(type="button")
i.pi-lock
i.pi-download
| {% endif %}
| {% endif %}

View File

@ -73,6 +73,7 @@
i.pi-download
| {% else %}
button.btn.btn-default.disabled.sorry(type="button")
i.pi-lock
i.pi-download
| {% endif %}
| {% endif %}

View File

@ -84,8 +84,8 @@
li.btn-group.node-details-meta-list-item.video.download.disabled(
title="Download Video")
button.btn.btn-default.sorry(type="button")
i.pi-lock
i.pi-download
i.pi-angle-down.icon-dropdown-menu
| {% endif %}
| {% endif %}

View File

@ -79,8 +79,8 @@
li.btn-group.node-details-meta-list-item.video.download.disabled(
title="Download HDRi")
button.btn.btn-default.sorry(type="button")
i.pi-lock
i.pi-download
i.pi-angle-down.icon-dropdown-menu
| {% endif %}
| {% if node.description %}

View File

@ -94,6 +94,7 @@
| Download
| {% else %}
button.btn.btn-default.disabled.sorry(type="button")
i.pi-lock
| Download
| {% endif %}
| {% endfor %}