metamaps--metamaps/app/views/layouts/_templates.html.erb

239 lines
9.1 KiB
Text
Raw Normal View History

<%#
# @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">
<div class="mapInfoName" id="mapInfoName">{{{name}}}</div>
2014-08-27 02:51:50 +00:00
<div class="mapInfoStat">
<div class="infoStatIcon mapContributors hoverForTip">
<img id="mapContribs" class="{{contributors_class}}"
width="25" height="25" src="{{contributor_image}}" />
<span>{{contributor_count}}</span>
<div class="tip">{{{contributor_list}}}</div>
2014-08-27 02:51:50 +00:00
</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" id="mapInfoDesc">
2014-09-03 23:05:25 +00:00
{{{desc}}}
2014-08-27 02:51:50 +00:00
</div>
<div class="mapInfoMeta">
<p class="mapCreatedAt"><span>Created by:</span> {{user_name}} on {{created_at}}</p>
<p class="mapEditedAt"><span>Last edited:</span> {{updated_at}}</p>
<div class="mapInfoButtonsWrapper">
<div class="mapInfoDelete">
<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">
<span class="title">
2014-09-03 23:05:25 +00:00
{{name}}
</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">
<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>
</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>
<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">
<button class="addToMap hoverForTip" onclick="return Metamaps.Topic.getTopicFromSearch(event, {{id}})">
<span class="tip">add to map</span>
</button>
2014-10-01 17:18:24 +00:00
<div class="mapCount">
{{mapCount}}
</div>
2014-10-01 17:18:24 +00:00
<div class="synapseCount">
{{synapseCount}}
</div>
<div class="topicOriginatorIcon hoverForTip">
2014-10-01 17:18:24 +00:00
<img width="18" height="18" src="{{originatorImage}}">
<span class="tip topicOriginator">created by {{originator}}</span>
</div>
2014-10-01 17:18:24 +00:00
<div class="topicPermission {{permission}}">
</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">
<img class="icon" src="/assets/metamap32c.png">
</div>
<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">
{{topicCount}}
</div>
2014-10-01 17:18:24 +00:00
<div class="synapseCount">
{{synapseCount}}
</div>
<div class="mapContributorsIcon hoverForTip">
<span class="tip mapContributors">{{contributorList}}</span>
{{contributorCount}}
</div>
2014-10-01 17:18:24 +00:00
<div class="mapPermission {{permission}}">
</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>
<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>
</div>
2014-10-01 17:18:24 +00:00
<div class="mapperGeneration">
<p>Generation: {{generation}}</p>
</div>
2014-10-01 17:18:24 +00:00
<div class="mapCount">
{{mapCount}}
</div>
</div>
<div class="clearfloat"></div>
</div>
</script>
<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>
</div>
</script>
<script type="text/template" id="topicAutocompleteTemplate">
2014-09-21 05:02:21 +00:00
<img class="autocompleteSection topicType" width="24" height="24" src="{{typeImageURL}}" alt="{{type}}" title="{{type}}" />
<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}}" />
<span class="tooltips topicOriginator">{{originator}}</span>
2014-09-21 05:02:21 +00:00
</div>
<div class="topicPermission {{permission}}"></div>
</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">
<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>
</span>
<div class="links">
<div class="linkItem icon">
<div class="metacodeTitle {{metacode_class}}">
{{metacode}}
<div class="expandMetacodeSelect"></div>
</div>
<div class="metacodeImage" style="background-image:url({{imgsrc}});" title="click and drag to move card"></div>
<div class="metacodeSelect">{{{metacode_select}}}</div>
</div>
<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>
</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}}
</a>
<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>
{{synapse_count}}
</a>
2014-09-09 22:17:39 +00:00
<div class="linkItem mapPerm {{mk_permission}}" title="{{permission}}"></div>
<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>
<div class="attachments {{attachmentsHidden}}">
{{{attachments}}}
</div>
<div class="clearfloat"></div>
</div>
</script>
</div>