-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #132 from minnestar/random-session-order
Random session order
- Loading branch information
Showing
8 changed files
with
48 additions
and
19 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<div class="column grid_<%= grid %>"> | ||
<h3>Sessions about <%= category.name %></h3> | ||
<ul class="sessionsList"> | ||
<%= render category.sessions.for_current_event.limit(5) %> | ||
<%= render category.sessions.for_current_event.random_order.limit(5) %> | ||
</ul> | ||
<p><%= link_to 'See more...', category_path(category) %></p> | ||
<p class="more_sessions"><%= link_to 'See more...', category_path(category) %></p> | ||
</div> | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
<% title('All Sessions') %> | ||
<div class="row"> | ||
<p><%= add_sessions_button %></p> | ||
<div class="column grid_6" style="margin-left:0px"> | ||
<ul class="sessionsList"> | ||
<%= render @sessions %> | ||
</ul> | ||
</div> | ||
</div> | ||
(most recently added first) | ||
|
||
<% cache [Session.maximum(:updated_at), current_participant] do %> | ||
<div class="row"> | ||
<p><%= add_sessions_button %></p> | ||
<div class="column grid_10" style="margin-left:0px"> | ||
<ul class="sessionsList"> | ||
<%= render @sessions %> | ||
</ul> | ||
</div> | ||
</div> | ||
<% end %> |
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