cartodb-4.42/lib/assets/javascripts/dashboard/views/public-profile/user-feed/dataset-item.tpl
2024-04-06 05:25:13 +00:00

38 lines
1.8 KiB
Smarty

<li class="FeedItem">
<a href="http://<%- username %>.<%- account_host %>" class="FeedItem-avatar u-hideOnTablet">
<img src="<%- avatar_url %>" class="UserAvatar-img UserAvatar-img--big" />
</a>
<div class="DatasetCard DatasetCard--long" data-vis-id="<%- vis.id %>">
<div class="DatasetCard-content">
<div class="DatasetCard-contentBodyRow DatasetCard-contentBodyRow--flex">
<div class="DatasetCard-contentBodyDetails--left">
<div class="DatasetsList-itemCategory is--<%- geomType %>Dataset"></div>
</div>
<div class="DatasetCard-contentBodyDetails--right u-ellipsLongText">
<h3 class="DatasetCard-title DefaultTitle CDB-Text is-semibold">
<a href="<%- base_url %>/tables/<%- vis.name %>/public" class="DefaultTitle-link u-ellipsLongText" title="<%- vis.name %>"><%- vis.name %></a>
</h3>
<div class="DatasetCard-contentFooter u-altTextColor CDB-Size-medium">
<div class="MapCard-contentFooterDetails--left">
<% if (datasetSize && datasetSize[0] > 0) { %>
<div class="MapCard-contentFooterIcon u-hideOnMobile">
<i class="CDB-IconFont CDB-IconFont-floppy SizeIndicator-icon"></i>
<span class="MapCardIcon-counter"><%- datasetSize[0] %></span> <span class="MapCardIcon-label"><%- datasetSize[1] %></span>
</div>
<% } %>
<div class="MapCard-contentFooterDetails--right">
<div class="MapCard-contentFooterTimeDiff DefaultTimeDiff">
<i class="CDB-IconFont CDB-IconFont-clock DefaultTimeDiff-icon"></i>
<%- updated %>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</li>