|
|
|
@ -52,11 +52,10 @@
|
|
|
|
|
<div class="info_font" style=" word-wrap: break-word; word-break: break-all">
|
|
|
|
|
<%= @project.name %>
|
|
|
|
|
</div>
|
|
|
|
|
<%if User.current.login?%>
|
|
|
|
|
<% unless @course.teacher.id == User.current.id%>
|
|
|
|
|
<!-- <%= image_tag "/images/sidebar/add.png" %>
|
|
|
|
|
<%= image_tag "/images/add.png" %> -->
|
|
|
|
|
<div class="icon-add icon" style="margin-right: 30px; margin-left: 20px">
|
|
|
|
|
<%if User.current.logged?%>
|
|
|
|
|
<% if @course.teacher.id == User.current.id%>
|
|
|
|
|
<%= link_to l(:label_course_settings), {:controller => 'projects', :action => 'settings', :id => @project} %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= join_in_course(@project, User.current)%></div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% unless User.current.member_of?(@project) %>
|
|
|
|
|