2014-01-29 03:46:58 +00:00
|
|
|
<%#
|
|
|
|
# @file
|
|
|
|
# templates for the upper right autocomplete results
|
|
|
|
#%>
|
|
|
|
|
|
|
|
<div class="templates">
|
|
|
|
|
2014-05-17 11:32:52 +00:00
|
|
|
<script type="text/template" class="topicTemplate">
|
2014-02-02 19:56:07 +00:00
|
|
|
<div class="result{{rtype}}">
|
2014-02-03 05:35:21 +00:00
|
|
|
<div class="topicMetacode">
|
|
|
|
<img src="{{typeImageURL}}" class="topicIcon" />
|
|
|
|
<span class="metacodeTip">{{type}}</span>
|
|
|
|
</div>
|
2014-01-29 03:46:58 +00:00
|
|
|
<div class="resultText">
|
2014-02-05 01:28:06 +00:00
|
|
|
<p class="resultTitle">{{label}}</p>
|
2014-01-29 03:46:58 +00:00
|
|
|
<p class="resultDesc">{{description}}</p>
|
|
|
|
</div>
|
|
|
|
<div class="autoOptions">
|
|
|
|
|
2014-01-31 00:32:15 +00:00
|
|
|
<% if controller_name == 'maps' && action_name == 'show' && authenticated? && @map.authorize_to_edit(@current) %>
|
2014-02-03 05:35:21 +00:00
|
|
|
<button class="addToMap hoverForTip" onclick="return keepFromCommons(event, {{id}})">
|
|
|
|
<span class="tip">add to map</span>
|
|
|
|
</button>
|
2014-01-29 03:46:58 +00:00
|
|
|
<% end %>
|
2014-02-03 05:35:21 +00:00
|
|
|
<a href="/topics/{{id}}" target="_blank" class="goTo hoverForTip">
|
2014-01-29 03:46:58 +00:00
|
|
|
<span class="tip">open in new tab</span>
|
|
|
|
</a>
|
2014-02-03 05:35:21 +00:00
|
|
|
<div class="mapCount hoverForTip">
|
|
|
|
<span class="tip">appears on this # of maps</span>
|
2014-01-29 03:46:58 +00:00
|
|
|
{{mapCount}}
|
|
|
|
</div>
|
2014-02-03 05:35:21 +00:00
|
|
|
<div class="synapseCount hoverForTip">
|
|
|
|
<span class="tip"> has this # of synapses</span>
|
2014-01-29 03:46:58 +00:00
|
|
|
{{synapseCount}}
|
|
|
|
</div>
|
2014-02-03 05:35:21 +00:00
|
|
|
<div class="topicOriginatorIcon hoverForTip">
|
|
|
|
<span class="tip topicOriginator">created by {{originator}}</span>
|
2014-01-29 03:46:58 +00:00
|
|
|
</div>
|
2014-02-03 05:35:21 +00:00
|
|
|
<div class="topicPermission {{permission}} hoverForTip">
|
|
|
|
<span class="tip">topic is {{permission}}</span>
|
2014-01-29 03:46:58 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
2014-05-17 11:32:52 +00:00
|
|
|
</script>
|
2014-01-29 03:46:58 +00:00
|
|
|
|
2014-05-17 11:32:52 +00:00
|
|
|
<script type="text/template" class="mapTemplate">
|
2014-02-02 19:56:07 +00:00
|
|
|
<div class="result{{rtype}}">
|
2014-01-29 03:46:58 +00:00
|
|
|
<img class="icon" src="/assets/map.png">
|
|
|
|
<div class="resultText">
|
2014-02-05 01:28:06 +00:00
|
|
|
<p class="resultTitle">{{label}}</p>
|
2014-01-29 03:46:58 +00:00
|
|
|
<p class="resultDesc">{{description}}</p>
|
|
|
|
</div>
|
|
|
|
<div class="autoOptions">
|
2014-02-03 05:35:21 +00:00
|
|
|
<a href="/maps/{{id}}" target="_blank" class="goTo hoverForTip">
|
2014-01-29 03:46:58 +00:00
|
|
|
<span class="tip">open in new tab</span>
|
|
|
|
</a>
|
2014-02-03 05:35:21 +00:00
|
|
|
<div class="topicCount hoverForTip">
|
|
|
|
<span class="tip">has this # of topics</span>
|
2014-01-29 03:46:58 +00:00
|
|
|
{{topicCount}}
|
|
|
|
</div>
|
2014-02-03 05:35:21 +00:00
|
|
|
<div class="synapseCount hoverForTip">
|
|
|
|
<span class="tip">has this # of synapses</span>
|
2014-01-29 03:46:58 +00:00
|
|
|
{{synapseCount}}
|
|
|
|
</div>
|
2014-02-03 05:35:21 +00:00
|
|
|
<div class="mapContributorsIcon hoverForTip">
|
2014-01-29 03:46:58 +00:00
|
|
|
<span class="tip mapContributors">{{contributorList}}</span>
|
|
|
|
{{contributorCount}}
|
|
|
|
</div>
|
2014-02-03 05:35:21 +00:00
|
|
|
<div class="mapPermission {{permission}} hoverForTip">
|
|
|
|
<span class="tip">map is {{permission}}</span>
|
2014-01-29 03:46:58 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
2014-05-17 11:32:52 +00:00
|
|
|
</script>
|
2014-01-29 03:46:58 +00:00
|
|
|
|
2014-05-17 11:32:52 +00:00
|
|
|
<script type="text/template" class="mapperTemplate">
|
2014-02-02 19:56:07 +00:00
|
|
|
<div class="result{{rtype}}">
|
2014-01-29 03:46:58 +00:00
|
|
|
<img class="icon" width="28" height="28" src="/assets/MMCCicon_mapper.png">
|
|
|
|
<div class="resultText">
|
2014-02-05 01:28:06 +00:00
|
|
|
<p class="resultTitle">{{label}}</p>
|
2014-01-29 03:46:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="autoOptions">
|
2014-02-03 05:35:21 +00:00
|
|
|
<a href="/maps/mappers/{{id}}" target="_blank" class="goTo hoverForTip">
|
2014-01-29 03:46:58 +00:00
|
|
|
<span class="tip">open in new tab</span>
|
|
|
|
</a>
|
2014-02-03 05:35:21 +00:00
|
|
|
<div class="mapCount hoverForTip">
|
|
|
|
<span class="tip">created this # of maps</span>
|
2014-01-29 03:46:58 +00:00
|
|
|
{{mapCount}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
2014-05-17 11:32:52 +00:00
|
|
|
</script>
|
2014-01-29 03:46:58 +00:00
|
|
|
|
2014-05-17 11:32:52 +00:00
|
|
|
<script type="text/template" class="synapseTemplate">
|
2014-02-05 01:28:06 +00:00
|
|
|
<div class="result{{rtype}}">
|
|
|
|
<p class="autocompleteSection synapseDesc">{{label}}</p>
|
|
|
|
<div class="autocompleteSection synapsePermission {{permission}}"></div>
|
|
|
|
<div class="autocompleteSection synapseOriginatorIcon hoverForTip">
|
|
|
|
<span class="tip synapseOriginator">{{originator}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
2014-05-17 11:32:52 +00:00
|
|
|
</script>
|
2014-02-05 01:28:06 +00:00
|
|
|
|
2014-01-29 03:46:58 +00:00
|
|
|
</div>
|