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

View file

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

View file

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

View file

@ -41,15 +41,15 @@
<% end %>
</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">
<%= @map.topics.count %>
</div>
<div class="infoStatIcon mapSynapses">
<%= @map.synapses.count %>
</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>