Commit d69470a77d4129987b95d8706378edcb22731b10

Authored by Rafael Manzo
1 parent dd05d881

No image asset replaced by a icon

app/assets/images/no-image-available.png

17.4 KB

app/views/projects/show.html.erb
1 1
2 <div class="page-header"> 2 <div class="page-header">
3 - <div class="media">  
4 - <a class="pull-left"> 3 + <div class="row">
  4 + <div class="col-md-2">
5 <% if @project_image && !@project_image.image_url.empty? %> 5 <% if @project_image && !@project_image.image_url.empty? %>
6 <%= image_tag "#{@project_image.image_url}", size:"64x64" %> 6 <%= image_tag "#{@project_image.image_url}", size:"64x64" %>
7 <% else %> 7 <% else %>
8 - <span class="glyphicon glyphicon-picture" aria-hidden="true"></span> 8 + <center><i class="fa fa-file-image-o fa-5x"></i></center><br />
9 No image available 9 No image available
10 <% end %> 10 <% end %>
11 - </a>  
12 - <div class="media-body">  
13 - <h4 class="media-heading">  
14 - <h1 class="col-md-1"><%= @project.name %></h1>  
15 - </h4> 11 + </div>
  12 + <div class="col-md-10">
  13 + <h1><%= @project.name %></h1>
16 </div> 14 </div>
17 </div> 15 </div>
18 </div> 16 </div>