Commit c748a7ca5bdc209b5aa4d9f667f7bc8888ad2576

Authored by Victor Costa
1 parent 335af8a0

Display article image

src/app/components/noosfero-blocks/recent-documents/recent-documents.html
... ... @@ -12,8 +12,7 @@
12 12 </span>
13 13 </div>
14 14 </div>
15   -
16   - <img ng-if="card.image" ng-src="card.image.url">
  15 + <img ng-show="card.image" ng-src="{{card.image.url}}" class="img-responsive article-image">
17 16 <div class="post-lead" ng-bind-html="card.body | stripTags | truncate: 100: '...'"></div>
18 17 </div>
19 18 </div>
... ...
src/app/components/noosfero-blocks/recent-documents/recent-documents.scss
... ... @@ -19,6 +19,9 @@
19 19 color: #8E8E8E;
20 20 font-size: 14px;
21 21 }
  22 + .article-image {
  23 + margin: 10px 0;
  24 + }
22 25 }
23 26  
24 27 .col-md-2-5 {
... ...