forked from aren19-zz/hw4_rottenpotatoes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
70 changed files
with
4,216 additions
and
0 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
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
-# This file is app/views/movies/similar.html.haml | ||
%h1 Similar Movies | ||
|
||
%table#movies | ||
%thead | ||
%tr | ||
%th Title | ||
%th Rating | ||
%th Director | ||
%th Release date | ||
%th More Info | ||
%tbody | ||
- @movies.each do |movie| | ||
%tr | ||
%td= movie.title | ||
%td= movie.rating | ||
%td= movie.director | ||
%td= movie.release_date | ||
%td= link_to "More about #{movie.title}", movie_path(movie) | ||
|
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<% | ||
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : "" | ||
rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}" | ||
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} --strict --tags ~@wip" | ||
%> | ||
default: <%= std_opts %> features | ||
wip: --tags @wip:3 --wip features | ||
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip |
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
$(document).ready(function() { | ||
$('.file_list').dataTable({ | ||
"aaSorting": [[ 1, "asc" ]], | ||
"bPaginate": false, | ||
"bJQueryUI": true, | ||
"aoColumns": [ | ||
null, | ||
{ "sType": "percent" }, | ||
null, | ||
null, | ||
null, | ||
null | ||
] | ||
}); | ||
|
||
$('.source_table tbody tr:odd').addClass('odd'); | ||
$('.source_table tbody tr:even').addClass('even'); | ||
|
||
$("a.src_link").fancybox({ | ||
'hideOnContentClick': true | ||
}); | ||
|
||
// Hide src files and file list container | ||
$('.source_files').hide(); | ||
$('.file_list_container').hide(); | ||
|
||
// Add tabs based upon existing file_list_containers | ||
$('.file_list_container h2').each(function(){ | ||
$('.group_tabs').append('<li><a href="#' + $(this).parent().attr('id') + '">' + $(this).html() + '</a></li>'); | ||
}); | ||
|
||
$('.group_tabs a').each( function() { | ||
$(this).addClass($(this).attr('href').replace('#', '')); | ||
}); | ||
|
||
$('.group_tabs a').live('focus', function() { | ||
$(this).blur(); | ||
}); | ||
|
||
var favicon_path = $('link[rel="shortcut icon"]').attr('href') | ||
$('.group_tabs a').live('click', function(){ | ||
if (!$(this).parent().hasClass('active')) { | ||
$('.group_tabs a').parent().removeClass('active'); | ||
$(this).parent().addClass('active'); | ||
$('.file_list_container').hide(); | ||
$(".file_list_container" + $(this).attr('href')).show(); | ||
window.location.href = window.location.href.split('#')[0] + $(this).attr('href').replace('#', '#_'); | ||
|
||
// Force favicon reload - otherwise the location change containing anchor would drop the favicon... | ||
// Works only on firefox, but still... - Anyone know a better solution to force favicon? | ||
$('link[rel="shortcut icon"]').remove(); | ||
$('head').append('<link rel="shortcut icon" type="image/png" href="'+ favicon_path +'" />'); | ||
}; | ||
return false; | ||
}); | ||
|
||
if (jQuery.url.attr('anchor')) { | ||
$('.group_tabs a.'+jQuery.url.attr('anchor').replace('_', '')).click(); | ||
} else { | ||
$('.group_tabs a:first').click(); | ||
}; | ||
|
||
$("abbr.timeago").timeago(); | ||
$('#loading').fadeOut(); | ||
$('#wrapper').show(); | ||
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.