This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Time::DATE_FORMATS[:default] = "%Y-%m-%d %I:%M %p" | |
Time::DATE_FORMATS[:time] = "%l:%M:%S %p" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table id="participation-table"> | |
... | |
... | |
... | |
<tr> | |
<td> | |
<% if (participation.comment.length > 75) %> | |
<span class="truncated"><%= truncate(participation.comment, length: 75, separator: ' ') %></span> | |
<span class="full"><%= participation.comment %></span> | |
<%= link_to 'View more', '#', class: "view-more" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#tags-drop { | |
color: #555; | |
} | |
#tags-drop ul { | |
display: none; | |
position: absolute; | |
background-color: white; | |
border: 1px solid silver; | |
} | |
#tags-drop:hover ul { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<div id="wrapper"> | |
<div id="header"> | |
<div id="access"> | |
<div class="menu"> | |
<div id="pages"> | |
<ul> | |
<li><a href="/">Home</a></li> | |
Code goes here! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<li><a href="/">Home</a></li> | |
<li id="tags-drop">TAGS | |
<ul> | |
<li><a href="/tagged/rails">Rails</a></li> | |
<li><a href="/tagged/javascript">JavaScript</a></li> | |
<li><a href="/tagged/technology">Technology</a></li> | |
<li><a href="/tagged/life">Life</a></li> | |
</ul> | |
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
link_to_remote I18n.t(:cancel), :url => {:action => 'disinvite_member', :id => @assignment.id, :membership => member.id}, | |
:html => {:title => I18n.t("student.cancel_invitation_title"), :class => "delete"}, | |
:confirm => I18n.t("student.cancel_invitation") | |
changing to | |
<%= link_to I18n.t(:cancel), | |
:url => {:controller => 'assignments', | |
:action => 'disinvite_member', | |
:id => @assignment.id, |