Commit <3

This commit is contained in:
Mehdi Arfaoui 2015-11-29 03:43:06 +01:00
parent 905b6bbb53
commit 2f5594f82b

View file

@ -1,10 +1,10 @@
<div class="row"> <div class="row">
<% if subject.picture? %> <% if subject.picture? %>
<div style="height:200px; width: 200px; -webkit-border-radius: 50%; border-radius: 50%; background: url('<%= subject.picture.url %>') 50% 50% no-repeat; background-size:cover; background-position: center center; loat:left; margin-right:15px;"></div> <div style="height:200px; width: 200px; -webkit-border-radius: 50%; border-radius: 50%; background: url('<%= subject.picture.url %>') 50% 50% no-repeat; background-size:cover; background-position: center center; float:left; margin-right:15px;"></div>
<% end %> <% end %>
<div style="overflow:hidden;"><h2 class="subject-title"><%= link_to subject.title, subject %></h2> <div style="overflow:hidden;"><h2 class="subject-title"><%= link_to subject.title, subject %></h2>
<p class="subject-presentation-text"><%= subject.presentation %></p> <p class="subject-presentation-text"><%= subject.presentation %></p></div>
</div> </div> </div>
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() { $(document).ready(function() {