Add CNIGS official data mark

This commit is contained in:
Paolo Pasquali committed 2017-10-09 19:08:53 +02:00
1 parent a5fb0c8a6f
commit 081a089db3
3 files changed
+33 -4

No files matched your search

+13 -1
View File
@@ -7281,6 +7281,15 @@ footer select {
.item-thumb img {
width: 100%;
}
.item-thumb .cnigs-logo {
border-radius: 50%;
position: absolute;
top: 5px;
right: 5px;
height: 42px;
width: 42px;
z-index: 99;
}
.item-details {
background: white;
color: #37474f;
@@ -7298,12 +7307,15 @@ footer select {
font-size: 0.875em;
}
.item-details .item-meta {
font-size: 0.75em;
margin-top: 1em;
}
.item-details .item-meta .item-category {
font-size: 0.75em;
text-transform: uppercase;
}
.item-details .item-meta a {
color: #37474f;
}
.item-details .btn-xs {
border-color: #eceff1;
border-bottom-right-radius: 0;
+13 -2
View File
@@ -651,10 +651,18 @@ footer {
.item-thumb {
padding-left: 0;
padding-right: 0;
img {
width: 100%;
}
.cnigs-logo {
border-radius: 50%;
position: absolute;
top: 5px;
right: 5px;
height: 42px;
width: 42px;
z-index: 99;
}
}
.item-details {
@@ -671,11 +679,14 @@ footer {
font-size: 0.875em;
}
.item-meta {
font-size: 0.75em;
margin-top: 1em;
.item-category {
font-size: 0.75em;
text-transform: uppercase;
}
a {
color: @gray-darker;
}
}
.btn-xs {
border-color: @gray-lighter;
@@ -9,12 +9,18 @@
<div class="col-xs-12 profile-avatar">
<div class="col-xs-4 item-thumb">
<a href="{{ item.detail_url }}"><img ng-src="{{ item.thumbnail_url }}" /></a>
<span ng-if="item.owner__username == 'cnigs'" ng-cloak>
<img class="cnigs-logo" src="/uploaded/avatars/cnigs/resized/42/cnigs-logo.jpg" />
</span>
</div>
<div class="col-xs-8 item-details">
{% endverbatim %}
<button class="btn btn-default btn-xs pull-right" ng-if="cart" ng-click="cart.toggleItem(item)"><i ng-class="cart.getFaClass(item.id)" class="fa fa-lg"></i></button>
{% verbatim %}
<p class="item-meta"><span class="item-category">{{ item.category__gn_description }}</span></p>
<p class="item-meta">
<span ng-if="item.owner__username == 'cnigs'" ng-cloak><a href="/layers/?owner__username__in=cnigs">CNIGS Official Data</a> | </span>
<span class="item-category">{{ item.category__gn_description }}</span>
</p>
<h4><a href="{{ item.detail_url }}">{{ item.title | limitTo: 48 }}{{ item.title.length > 48 ? '...' : ''}}</a></h4>
<p class="abstract">{{ item.abstract | limitTo: 300 }}{{ item.abstract.length > 300 ? '...' : ''}}</p>
<div class="row">