2014-06-04 19:24:16 +00:00
|
|
|
<%#
|
|
|
|
# @file
|
|
|
|
# templates for the upper right autocomplete results
|
|
|
|
#%>
|
|
|
|
|
|
|
|
<div class="templates">
|
2014-08-06 14:09:01 +00:00
|
|
|
|
2014-08-27 02:51:50 +00:00
|
|
|
<script type="text/template" id="mapInfoBoxTemplate">
|
2014-09-03 23:05:25 +00:00
|
|
|
<div class="mapInfoName">{{{name}}}</div>
|
2014-08-27 02:51:50 +00:00
|
|
|
|
|
|
|
<div class="mapInfoStat">
|
|
|
|
<div class="infoStatIcon mapContributors hoverForTip">
|
|
|
|
{{contributor_count}}
|
|
|
|
<div class="tip">{{contributor_list}}</div>
|
|
|
|
</div>
|
|
|
|
<div class="infoStatIcon mapTopics">
|
|
|
|
{{topic_count}}
|
|
|
|
</div>
|
|
|
|
<div class="infoStatIcon mapSynapses">
|
|
|
|
{{synapse_count}}
|
|
|
|
</div>
|
|
|
|
<div class="infoStatIcon mapPermission {{permission}} hoverForTip">
|
2014-09-03 23:05:25 +00:00
|
|
|
{{{map_creator_tip}}}
|
2014-08-27 02:51:50 +00:00
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
|
|
|
<div class="mapInfoDesc">
|
2014-09-03 23:05:25 +00:00
|
|
|
{{{desc}}}
|
2014-08-27 02:51:50 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mapInfoMeta">
|
2014-09-03 23:05:25 +00:00
|
|
|
<p class="mapCreatedAt">Created by {{user_name}} on {{created_at}}</p>
|
|
|
|
<p class="mapEditedAt">Last edited {{updated_at}}</p>
|
2014-08-27 02:51:50 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mapInfoDelete">
|
2014-09-03 23:05:25 +00:00
|
|
|
{{{delete}}}
|
2014-08-27 02:51:50 +00:00
|
|
|
</div>
|
|
|
|
</script>
|
2014-08-06 14:09:01 +00:00
|
|
|
|
|
|
|
<script type="text/template" id="mapCardTemplate">
|
2014-08-12 22:14:04 +00:00
|
|
|
<a href="/maps/{{id}}">
|
2014-08-06 14:09:01 +00:00
|
|
|
<div class="permission {{editPermission}}"> <!-- must be canEdit or cannotEdit -->
|
|
|
|
<div class="mapCard">
|
|
|
|
<span class="title">
|
2014-09-03 23:05:25 +00:00
|
|
|
{{name}}
|
2014-08-15 22:04:22 +00:00
|
|
|
</span>
|
|
|
|
<div class="mapScreenshot">
|
|
|
|
<img src="https://dl.dropboxusercontent.com/u/13307147/map%20screengrab%20blur-02.png">
|
|
|
|
</div>
|
2014-08-06 14:09:01 +00:00
|
|
|
<div class="scroll">
|
|
|
|
<div class="desc">
|
2014-09-03 23:05:25 +00:00
|
|
|
{{desc}}
|
|
|
|
<div class="clearfloat"></div>
|
2014-08-06 14:09:01 +00:00
|
|
|
</div>
|
2014-08-15 22:04:22 +00:00
|
|
|
</div>
|
|
|
|
<div class="mapMetadata">
|
|
|
|
<div class="metadataSection">{{{contributor_count_number}}}{{contributor_count_string}}</div>
|
|
|
|
<div class="metadataSection">{{{topic_count_number}}}{{topic_count_string}}</div>
|
|
|
|
<div class="metadataSection mapPermission">{{permission}}</div>
|
|
|
|
<div class="metadataSection">{{{synapse_count_number}}}{{synapse_count_string}}</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
2014-08-06 14:09:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-08-12 22:14:04 +00:00
|
|
|
</a>
|
2014-08-06 14:09:01 +00:00
|
|
|
</script>
|
|
|
|
|
2014-06-04 19:24:16 +00:00
|
|
|
<script type="text/template" id="topicSearchTemplate">
|
|
|
|
<div class="result{{rtype}}">
|
|
|
|
<div class="topicMetacode">
|
|
|
|
<img src="{{typeImageURL}}" class="topicIcon" />
|
|
|
|
<span class="metacodeTip">{{type}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="resultText">
|
|
|
|
<p class="resultTitle">{{label}}</p>
|
|
|
|
<p class="resultDesc">{{description}}</p>
|
|
|
|
</div>
|
|
|
|
<div class="autoOptions">
|
|
|
|
|
|
|
|
<% if controller_name == 'maps' && action_name == 'show' && authenticated? && @map.authorize_to_edit(@current) %>
|
|
|
|
<button class="addToMap hoverForTip" onclick="return keepFromCommons(event, {{id}})">
|
|
|
|
<span class="tip">add to map</span>
|
|
|
|
</button>
|
|
|
|
<% end %>
|
|
|
|
<div class="goTo hoverForTip">
|
|
|
|
<span class="tip">open in new tab</span>
|
|
|
|
</div>
|
|
|
|
<div class="mapCount hoverForTip">
|
|
|
|
<span class="tip">appears on this # of maps</span>
|
|
|
|
{{mapCount}}
|
|
|
|
</div>
|
|
|
|
<div class="synapseCount hoverForTip">
|
|
|
|
<span class="tip"> has this # of synapses</span>
|
|
|
|
{{synapseCount}}
|
|
|
|
</div>
|
|
|
|
<div class="topicOriginatorIcon hoverForTip">
|
|
|
|
<span class="tip topicOriginator">created by {{originator}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="topicPermission {{permission}} hoverForTip">
|
|
|
|
<span class="tip">topic is {{permission}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/template" id="mapSearchTemplate">
|
|
|
|
<div class="result{{rtype}}">
|
2014-09-03 23:05:25 +00:00
|
|
|
<img class="icon" src="/assets/metamap32c.png">
|
2014-06-04 19:24:16 +00:00
|
|
|
<div class="resultText">
|
|
|
|
<p class="resultTitle">{{label}}</p>
|
|
|
|
<p class="resultDesc">{{description}}</p>
|
|
|
|
</div>
|
|
|
|
<div class="autoOptions">
|
|
|
|
<div class="goTo hoverForTip">
|
|
|
|
<span class="tip">open in new tab</span>
|
|
|
|
</div>
|
|
|
|
<div class="topicCount hoverForTip">
|
|
|
|
<span class="tip">has this # of topics</span>
|
|
|
|
{{topicCount}}
|
|
|
|
</div>
|
|
|
|
<div class="synapseCount hoverForTip">
|
|
|
|
<span class="tip">has this # of synapses</span>
|
|
|
|
{{synapseCount}}
|
|
|
|
</div>
|
|
|
|
<div class="mapContributorsIcon hoverForTip">
|
|
|
|
<span class="tip mapContributors">{{contributorList}}</span>
|
|
|
|
{{contributorCount}}
|
|
|
|
</div>
|
|
|
|
<div class="mapPermission {{permission}} hoverForTip">
|
|
|
|
<span class="tip">map is {{permission}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/template" id="mapperSearchTemplate">
|
|
|
|
<div class="result{{rtype}}">
|
2014-09-03 23:05:25 +00:00
|
|
|
<img class="icon" width="32" height="32" src="{{profile}}">
|
2014-06-04 19:24:16 +00:00
|
|
|
<div class="resultText">
|
|
|
|
<p class="resultTitle">{{label}}</p>
|
|
|
|
</div>
|
|
|
|
<div class="autoOptions">
|
|
|
|
<div class="goTo hoverForTip">
|
|
|
|
<span class="tip">open in new tab</span>
|
|
|
|
</div>
|
|
|
|
<div class="mapCount hoverForTip">
|
|
|
|
<span class="tip">created this # of maps</span>
|
|
|
|
{{mapCount}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/template" id="synapseAutocompleteTemplate">
|
|
|
|
<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>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/template" id="topicAutocompleteTemplate">
|
|
|
|
<img class="autocompleteSection topicType" width="22" height="22" src="{{typeImageURL}}" alt="{{type}}" title="{{type}}" />
|
|
|
|
<p class="autocompleteSection topicTitle">{{label}}</p>
|
|
|
|
<div class="autocompleteSection topicPermission {{permission}}"></div>
|
|
|
|
<div class="autocompleteSection topicOriginatorIcon hoverForTip">
|
|
|
|
<span class="tip topicOriginator">{{originator}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/template" id="topicCardTemplate">
|
2014-09-09 22:17:39 +00:00
|
|
|
<div class="CardOnGraph {{hasAttachment}}" id="topic_{{id}}">
|
|
|
|
<span class="title">
|
2014-09-16 01:57:34 +00:00
|
|
|
<div class="titleWrapper" id="titleActivator">
|
2014-06-04 19:24:16 +00:00
|
|
|
<span class="best_in_place best_in_place_name"
|
|
|
|
data-url="/topics/{{id}}"
|
|
|
|
data-object="topic"
|
2014-09-16 01:57:34 +00:00
|
|
|
data-attribute="name"
|
|
|
|
data-activator="#titleActivator"
|
2014-09-09 22:17:39 +00:00
|
|
|
data-type="textarea">{{name}}</span>
|
|
|
|
</div>
|
2014-06-04 19:24:16 +00:00
|
|
|
</span>
|
|
|
|
<div class="links">
|
|
|
|
<div class="linkItem icon">
|
2014-06-08 20:26:25 +00:00
|
|
|
<div class="metacodeTitle {{metacode_class}}">{{metacode}}</div>
|
2014-06-04 19:24:16 +00:00
|
|
|
<div class="metacodeImage" style="background-image:url({{imgsrc}});" title="click and drag to move card"></div>
|
2014-09-18 06:33:38 +00:00
|
|
|
<div class="metacodeSelect">{{{metacode_select}}}</div>
|
2014-06-04 19:24:16 +00:00
|
|
|
</div>
|
2014-08-15 22:04:22 +00:00
|
|
|
<div class="linkItem contributor">
|
2014-09-09 22:17:39 +00:00
|
|
|
<img src="/assets/user.png" class="contributorIcon" width="32" height="32" />
|
2014-09-16 01:57:34 +00:00
|
|
|
<div class="contributorName">{{username}}</div>
|
2014-06-04 19:24:16 +00:00
|
|
|
</div>
|
2014-09-09 22:17:39 +00:00
|
|
|
<a href="/explore/topics/{{id}}" class="linkItem mapCount" title="Click to see which maps topic appears on">
|
|
|
|
<div class="mapCountIcon"></div>
|
|
|
|
{{map_count}}
|
2014-06-04 19:24:16 +00:00
|
|
|
</a>
|
2014-08-15 22:04:22 +00:00
|
|
|
<a href="/topics/{{id}}" class="linkItem synapseCount" title="Click to see this topics synapses">
|
2014-09-09 22:17:39 +00:00
|
|
|
<div class="synapseCountIcon"></div>
|
2014-08-15 22:04:22 +00:00
|
|
|
{{synapse_count}}
|
|
|
|
</a>
|
2014-09-09 22:17:39 +00:00
|
|
|
<div class="linkItem mapPerm {{mk_permission}}" title="{{permission}}"></div>
|
2014-06-04 19:24:16 +00:00
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
|
|
|
<div class="scroll">
|
|
|
|
<div class="desc">
|
|
|
|
<span class="best_in_place best_in_place_desc" data-url="/topics/{{id}}" data-object="topic" data-nil="{{desc_nil}}" data-attribute="desc" data-type="textarea">{{desc}}</span>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-08-12 01:59:02 +00:00
|
|
|
<div class="embeds">
|
|
|
|
{{{embeds}}}
|
|
|
|
</div>
|
2014-08-11 22:55:53 +00:00
|
|
|
<div class="attachments">
|
|
|
|
{{{attachments}}}
|
2014-06-04 19:24:16 +00:00
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
</div>
|