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-10-14 20:34:09 +00:00
|
|
|
<div class="mapInfoName" id="mapInfoName">{{{name}}}</div>
|
2014-08-27 02:51:50 +00:00
|
|
|
|
|
|
|
<div class="mapInfoStat">
|
|
|
|
<div class="infoStatIcon mapContributors hoverForTip">
|
2014-10-14 20:34:09 +00:00
|
|
|
<img id="mapContribs" class="{{contributors_class}}"
|
|
|
|
width="25" height="25" src="{{contributor_image}}" />
|
2016-04-24 15:50:35 +00:00
|
|
|
<span class="count">{{contributor_count}}</span>
|
2014-11-20 03:42:14 +00:00
|
|
|
<div class="tip">{{{contributor_list}}}</div>
|
2014-08-27 02:51:50 +00:00
|
|
|
</div>
|
2016-05-30 22:07:04 +00:00
|
|
|
<div class="infoStatIcon mapPermission {{permission}} hoverForTip">
|
|
|
|
{{{map_creator_tip}}}
|
|
|
|
</div>
|
2014-08-27 02:51:50 +00:00
|
|
|
<div class="infoStatIcon mapTopics">
|
|
|
|
{{topic_count}}
|
|
|
|
</div>
|
|
|
|
<div class="infoStatIcon mapSynapses">
|
|
|
|
{{synapse_count}}
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
2014-10-14 20:34:09 +00:00
|
|
|
<div class="mapInfoDesc" id="mapInfoDesc">
|
2014-09-03 23:05:25 +00:00
|
|
|
{{{desc}}}
|
2014-08-27 02:51:50 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mapInfoMeta">
|
2014-10-13 23:27:30 +00:00
|
|
|
<p class="mapCreatedAt"><span>Created by:</span> {{user_name}} on {{created_at}}</p>
|
|
|
|
<p class="mapEditedAt"><span>Last edited:</span> {{updated_at}}</p>
|
2014-10-14 20:34:09 +00:00
|
|
|
<div class="mapInfoButtonsWrapper">
|
|
|
|
<div class="mapInfoDelete">
|
2014-11-26 15:51:05 +00:00
|
|
|
<div class="deleteMap"></div>
|
2014-10-14 20:34:09 +00:00
|
|
|
<span>Delete</span>
|
|
|
|
</div>
|
|
|
|
<div class="mapInfoShare">
|
|
|
|
<div class="mapInfoShareIcon"></div>
|
|
|
|
<span>Share</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
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">
|
2014-11-26 19:49:01 +00:00
|
|
|
<span class="title" title="{{fullName}}">
|
2014-09-03 23:05:25 +00:00
|
|
|
{{name}}
|
2014-08-15 22:04:22 +00:00
|
|
|
</span>
|
|
|
|
<div class="mapScreenshot">
|
2014-10-08 04:07:54 +00:00
|
|
|
{{{screenshot}}}
|
|
|
|
</div>
|
2014-08-06 14:09:01 +00:00
|
|
|
<div class="scroll">
|
2014-11-26 19:49:01 +00:00
|
|
|
<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-11-25 20:06:30 +00:00
|
|
|
|
|
|
|
<script type="text/template" id="mapperCardTemplate">
|
|
|
|
<div class="mapperCard">
|
|
|
|
<div class="mapperImage">
|
|
|
|
<img src="{{image}}" width="96" height="96" />
|
|
|
|
</div>
|
|
|
|
<div class="mapperName" title="{{name}}">
|
|
|
|
{{name}}
|
|
|
|
</div>
|
|
|
|
<div class="mapperInfo">
|
|
|
|
<div class="mapperCreatedAt">Mapper since: {{created_at}}</div>
|
|
|
|
<div class="mapperGeneration">Generation: {{generation}}</div>
|
|
|
|
</div>
|
|
|
|
<div class="mapperMetadata">
|
|
|
|
<div class="metadataSection metadataMaps"><div>{{numMaps}}</div>maps</div>
|
|
|
|
<div class="metadataSection metadataTopics"><div>{{numTopics}}</div>topics</div>
|
|
|
|
<div class="metadataSection metadataSynapses"><div>{{numSynapses}}</div>synapses</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</script>
|
2014-08-06 14:09:01 +00:00
|
|
|
|
2014-06-04 19:24:16 +00:00
|
|
|
<script type="text/template" id="topicSearchTemplate">
|
|
|
|
<div class="result{{rtype}}">
|
2016-02-05 10:27:26 +00:00
|
|
|
<div class="topicMetacode searchResIconWrapper">
|
2014-06-04 19:24:16 +00:00
|
|
|
<img src="{{typeImageURL}}" class="topicIcon" />
|
2014-11-26 21:37:13 +00:00
|
|
|
<div class="metacodeTip">{{type}}</div>
|
2014-06-04 19:24:16 +00:00
|
|
|
</div>
|
|
|
|
<div class="resultText">
|
|
|
|
<p class="resultTitle">{{label}}</p>
|
|
|
|
<p class="resultDesc">{{description}}</p>
|
|
|
|
</div>
|
|
|
|
<div class="autoOptions">
|
2014-10-17 03:54:26 +00:00
|
|
|
<button class="addToMap hoverForTip" onclick="return Metamaps.Topic.getTopicFromSearch(event, {{id}})">
|
2014-06-04 19:24:16 +00:00
|
|
|
<span class="tip">add to map</span>
|
|
|
|
</button>
|
2014-10-01 17:18:24 +00:00
|
|
|
<div class="mapCount">
|
2014-06-04 19:24:16 +00:00
|
|
|
{{mapCount}}
|
|
|
|
</div>
|
2014-10-01 17:18:24 +00:00
|
|
|
<div class="synapseCount">
|
2014-06-04 19:24:16 +00:00
|
|
|
{{synapseCount}}
|
|
|
|
</div>
|
|
|
|
<div class="topicOriginatorIcon hoverForTip">
|
2014-10-01 17:18:24 +00:00
|
|
|
<img width="18" height="18" src="{{originatorImage}}">
|
2014-11-26 21:37:13 +00:00
|
|
|
<span class="tip topicOriginator">{{originator}}</span>
|
2014-06-04 19:24:16 +00:00
|
|
|
</div>
|
2014-10-01 17:18:24 +00:00
|
|
|
<div class="topicPermission {{permission}}">
|
2014-06-04 19:24:16 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/template" id="mapSearchTemplate">
|
|
|
|
<div class="result{{rtype}}">
|
2014-10-01 17:18:24 +00:00
|
|
|
<div class="searchResIconWrapper">
|
2015-09-22 14:27:34 +00:00
|
|
|
<img class="icon" src="<%= asset_path('metamap36c.png') %>">
|
2014-10-01 17:18:24 +00:00
|
|
|
</div>
|
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">
|
2014-10-01 17:18:24 +00:00
|
|
|
<div class="topicCount">
|
2014-06-04 19:24:16 +00:00
|
|
|
{{topicCount}}
|
|
|
|
</div>
|
2014-10-01 17:18:24 +00:00
|
|
|
<div class="synapseCount">
|
2014-06-04 19:24:16 +00:00
|
|
|
{{synapseCount}}
|
|
|
|
</div>
|
|
|
|
<div class="mapContributorsIcon hoverForTip">
|
2014-11-23 00:35:03 +00:00
|
|
|
<img id="mapContribs" width="25" height="25" src="{{mapContributorImage}}" />
|
|
|
|
<div class="tip">
|
|
|
|
<ul>
|
|
|
|
{{{contributorTip}}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<span>{{contributorCount}}</span>
|
2014-06-04 19:24:16 +00:00
|
|
|
</div>
|
2014-10-01 17:18:24 +00:00
|
|
|
<div class="mapPermission {{permission}}">
|
2014-06-04 19:24:16 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/template" id="mapperSearchTemplate">
|
|
|
|
<div class="result{{rtype}}">
|
2014-10-01 17:18:24 +00:00
|
|
|
<div class="searchResIconWrapper">
|
|
|
|
<img class="icon" width="32" height="32" src="{{profile}}">
|
|
|
|
</div>
|
2014-06-04 19:24:16 +00:00
|
|
|
<div class="resultText">
|
|
|
|
<p class="resultTitle">{{label}}</p>
|
|
|
|
</div>
|
|
|
|
<div class="autoOptions">
|
2014-10-01 17:18:24 +00:00
|
|
|
<div class="mapperCreated">
|
2014-10-01 22:07:05 +00:00
|
|
|
<p>Mapping since: {{created_at}}</p>
|
2014-06-04 19:24:16 +00:00
|
|
|
</div>
|
2014-10-01 17:18:24 +00:00
|
|
|
<div class="mapperGeneration">
|
2014-11-21 21:50:42 +00:00
|
|
|
<p>Generation: {{generation}}</p>
|
2014-10-01 13:54:56 +00:00
|
|
|
</div>
|
2014-10-01 17:18:24 +00:00
|
|
|
<div class="mapCount">
|
2014-06-04 19:24:16 +00:00
|
|
|
{{mapCount}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
|
2016-04-24 15:50:35 +00:00
|
|
|
<script type="text/template" id="collaboratorSearchTemplate">
|
|
|
|
<div class="collabResult">
|
|
|
|
<div class="collabIconWrapper">
|
|
|
|
<img class="icon" width="25" height="25" src="{{profile}}">
|
|
|
|
</div>
|
|
|
|
<div class="collabNameWrapper">
|
|
|
|
<p class="collabName">{{label}}</p>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
|
2014-06-04 19:24:16 +00:00
|
|
|
<script type="text/template" id="synapseAutocompleteTemplate">
|
|
|
|
<div class="result{{rtype}}">
|
2014-11-16 20:17:32 +00:00
|
|
|
<p class="autocompleteSection synapseDesc">{{label}}</p>
|
2014-09-23 03:42:26 +00:00
|
|
|
<div class="synapseMetadata">
|
|
|
|
<div class="synapseOriginatorIcon hoverForTip">
|
|
|
|
<img width="24" height="24" src="{{originatorImage}}" />
|
2014-11-16 20:17:32 +00:00
|
|
|
<span class="tooltips synapseOriginator">{{originator}}</span>
|
2014-09-23 03:42:26 +00:00
|
|
|
</div>
|
|
|
|
<div class="synapsePermission {{permission}}"></div>
|
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
2014-06-04 19:24:16 +00:00
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/template" id="topicAutocompleteTemplate">
|
2015-10-02 05:36:51 +00:00
|
|
|
<div>
|
2014-09-21 05:02:21 +00:00
|
|
|
<img class="autocompleteSection topicType" width="24" height="24" src="{{typeImageURL}}" alt="{{type}}" title="{{type}}" />
|
2014-06-04 19:24:16 +00:00
|
|
|
<p class="autocompleteSection topicTitle">{{label}}</p>
|
2014-09-21 05:02:21 +00:00
|
|
|
<div class="expandTopicMetadata"></div>
|
|
|
|
<div class="topicMetadata">
|
|
|
|
<div class="topicNumMaps">{{mapCount}}</div>
|
|
|
|
<div class="topicNumSynapses">{{synapseCount}}</div>
|
|
|
|
<div class="topicOriginatorIcon hoverForTip">
|
|
|
|
<img width="24" height="24" src="{{originatorImage}}" />
|
2014-11-20 03:42:14 +00:00
|
|
|
<span class="tooltips topicOriginator">{{originator}}</span>
|
2014-09-21 05:02:21 +00:00
|
|
|
</div>
|
|
|
|
<div class="topicPermission {{permission}}"></div>
|
2014-06-04 19:24:16 +00:00
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
2015-10-02 05:36:51 +00:00
|
|
|
</div>
|
2014-06-04 19:24:16 +00:00
|
|
|
</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-09-20 19:11:58 +00:00
|
|
|
<div class="metacodeTitle {{metacode_class}}">
|
|
|
|
{{metacode}}
|
|
|
|
<div class="expandMetacodeSelect"></div>
|
|
|
|
</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">
|
2015-09-22 14:27:34 +00:00
|
|
|
<a href="/explore/mapper/{{userid}}"><img src="<%= asset_path('user.png') %>" class="contributorIcon" width="32" height="32" /></a>
|
2014-09-16 01:57:34 +00:00
|
|
|
<div class="contributorName">{{username}}</div>
|
2014-06-04 19:24:16 +00:00
|
|
|
</div>
|
2014-11-27 20:02:44 +00:00
|
|
|
<div class="linkItem mapCount">
|
2014-11-26 19:44:31 +00:00
|
|
|
<div class="mapCountIcon"></div>
|
|
|
|
{{map_count}}
|
2014-11-27 20:02:44 +00:00
|
|
|
<div class ="hoverTip">Click to see which maps topic appears on</div>
|
2014-11-26 19:44:31 +00:00
|
|
|
<div class="tip"><ul>{{{inmaps}}}</ul></div>
|
|
|
|
</div>
|
|
|
|
|
2014-11-26 20:23:32 +00:00
|
|
|
<a href="/topics/{{id}}" class="linkItem synapseCount">
|
2014-09-09 22:17:39 +00:00
|
|
|
<div class="synapseCountIcon"></div>
|
2014-08-15 22:04:22 +00:00
|
|
|
{{synapse_count}}
|
2014-11-26 20:23:32 +00:00
|
|
|
<div class="tip">Click to see this topics synapses</div>
|
2014-08-15 22:04:22 +00:00
|
|
|
</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-09-20 19:11:58 +00:00
|
|
|
<div class="attachments {{attachmentsHidden}}">
|
2014-08-11 22:55:53 +00:00
|
|
|
{{{attachments}}}
|
2014-06-04 19:24:16 +00:00
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
|
|
|
</script>
|
2015-09-22 14:27:34 +00:00
|
|
|
</div>
|