hide the permission box, unless you're the one who can change the permission

This commit is contained in:
Connor Turland 2016-05-30 18:07:04 -04:00
parent c08868a5c1
commit ce3271d8f0
4 changed files with 16 additions and 8 deletions

View file

@ -1572,6 +1572,7 @@ h3.filterBox {
.commonsMap .mapContributors { .commonsMap .mapContributors {
visibility: hidden; visibility: hidden;
margin-left: 34px;
} }
.mapContributors { .mapContributors {
@ -1798,7 +1799,7 @@ input.collaboratorSearchField {
width: 32px; width: 32px;
height: 32px; height: 32px;
padding: 0; padding: 0;
margin: 8px 30px 8px 10px; margin: 8px 12px 8px 10px;
position: relative; position: relative;
background-image: url(<%= asset_data_uri('permissions32_sprite.png') %>); background-image: url(<%= asset_data_uri('permissions32_sprite.png') %>);
} }

View file

@ -188,11 +188,14 @@
height: 48px; height: 48px;
} }
.linkItem.contributor { .linkItem.contributor {
margin-left:40px; margin-left:76px;
z-index:1; z-index:1;
padding:17px 16px 17px 30px; padding:17px 16px 17px 30px;
position: relative; position: relative;
} }
.yourTopic .linkItem.contributor {
margin-left: 40px;
}
.contributor .contributorIcon { .contributor .contributorIcon {
position: absolute; position: absolute;
top: 8px; top: 8px;
@ -376,6 +379,7 @@
.mapPerm { .mapPerm {
display: none;
width: 32px; width: 32px;
height: 32px; height: 32px;
padding: 0; padding: 0;
@ -385,6 +389,9 @@
background-image: url(<%= asset_data_uri('permissions32_sprite.png') %>); background-image: url(<%= asset_data_uri('permissions32_sprite.png') %>);
background-position: 0 0; background-position: 0 0;
} }
.yourTopic .mapPerm {
display: block;
}
.mapPerm.co { .mapPerm.co {
background-position: 0 0; background-position: 0 0;
} }

View file

@ -15,15 +15,15 @@
<span class="count">{{contributor_count}}</span> <span class="count">{{contributor_count}}</span>
<div class="tip">{{{contributor_list}}}</div> <div class="tip">{{{contributor_list}}}</div>
</div> </div>
<div class="infoStatIcon mapPermission {{permission}} hoverForTip">
{{{map_creator_tip}}}
</div>
<div class="infoStatIcon mapTopics"> <div class="infoStatIcon mapTopics">
{{topic_count}} {{topic_count}}
</div> </div>
<div class="infoStatIcon mapSynapses"> <div class="infoStatIcon mapSynapses">
{{synapse_count}} {{synapse_count}}
</div> </div>
<div class="infoStatIcon mapPermission {{permission}} hoverForTip">
{{{map_creator_tip}}}
</div>
<div class="clearfloat"></div> <div class="clearfloat"></div>
</div> </div>
<div class="mapInfoDesc" id="mapInfoDesc"> <div class="mapInfoDesc" id="mapInfoDesc">

View file

@ -41,15 +41,15 @@
<% end %> <% end %>
</div> </div>
</div> </div>
<div class="infoStatIcon mapPermission <%= @map.permission %> hoverForTip">
<div class="tooltips">As the creator, you can change the permission of this map, and the permission of all the topics and synapses you have authority to change will change as well.</div>
</div>
<div class="infoStatIcon mapTopics"> <div class="infoStatIcon mapTopics">
<%= @map.topics.count %> <%= @map.topics.count %>
</div> </div>
<div class="infoStatIcon mapSynapses"> <div class="infoStatIcon mapSynapses">
<%= @map.synapses.count %> <%= @map.synapses.count %>
</div> </div>
<div class="infoStatIcon mapPermission <%= @map.permission %> hoverForTip">
<div class="tooltips">As the creator, you can change the permission of this map, and the permission of all the topics and synapses you have authority to change will change as well.</div>
</div>
<div class="clearfloat"></div> <div class="clearfloat"></div>
</div> </div>