Skip to content

Commit

Permalink
Merge branch 'development' of github.com:icl/cove into development
Browse files Browse the repository at this point in the history
  • Loading branch information
jsonnikson committed Jun 10, 2011
2 parents d53662f + 5d8bb9e commit a97188c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 92 deletions.
2 changes: 2 additions & 0 deletions app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
= javascript_include_tag "jquery.js"
= javascript_include_tag "rails.js"
= javascript_include_tag :defaults
= javascript_include_tag "/jwplayer/jwplayer.js"

= csrf_meta_tag
%body
%header
Expand Down
103 changes: 11 additions & 92 deletions app/views/videos/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,96 +1,15 @@


<style type="text/css">
body {
font-family: verdana;
padding: 25px;
}
h1 {
color: brown;
}
.container_12 ul {
list-style-type: none;
padding-left: 0px;
}
.container_12 ul li {
margin-bottom: 20px;
font-size: 1.2em;
color: blue;
padding-left: 25px;
background: url('/images/right_tri.png') no-repeat top left;
}
.container_12 ul li ul li {
margin-top: 10px;
margin-bottom: 0px;
font-size: 0.9em;
background: none;
color: #000;
}
.container_12 ul li ul li span{
margin-top: 10px;
font-size: 0.8em;
background: none;
font-style: italic;
}
span.count {
float: right;
background: #eee;
text-align: center;
padding: 5px 10px;
font-size: 0.8em;
color: #000;
}
<div id="video_player">

</style>
</div>

<div class="container_12">
<h1 class="grid_8 suffix_4">Viewing video #168 (basic version)</h1>

<div class="grid_8" style="background: #e2e2e2; width: 480px; height: 270px;">&nbsp;</div>

<p class="grid_8 suffix_4" style="clear:both;" class="grid_8"><b>Tags:</b> Click on tag to show intervals marked with tag. </p>

<ul class="grid_6">
<li id="tag_riffing" class="link">Riffing<span class="count grid_1">4</span>
<ul id="list_riffing">
<!-- list start times and end times for riffing, ordered by start time -->
<li>2:30 - 3:10</li>
<li>2:45 - 2:50</li>
<li>2:45 - 3:00</li>
<li>4:05 - 4:20</li>
</ul>
</li>


<li id="tag_showing" class="link">Showing<span class="count grid_1">3</span>
<ul id="list_showing">
<!-- list start times and end times for showing, ordered by start time -->
<li>1:05 - 1:30</li>
<li>1:05 - 1:25</li>
<li>1:07 - 1:29</li>
</ul>
</li>
</ul>

</div>

<script>

$("ul#list_riffing").hide();
$("ul#list_showing").hide();

$("li#tag_riffing").click(function () {
$("ul#list_riffing").slideToggle("slow");
if ($("li#tag_riffing").css("backgroundImage").indexOf("right_tri.png")!=-1) {
$("li#tag_riffing").css("backgroundImage", "url('/images/down_tri.png')");
}
else {
$("li#tag_riffing").css("backgroundImage", "url('/images/right_tri.png')");
}
});

$("li#tag_showing").click(function () {
$("ul#list_showing").slideToggle("slow");
});

</script>
<script type='text/javascript'>
jwplayer('video_player').setup({
flashplayer: '/jwplayer/player.swf',
file: '<%= video_service_url @video.filepath %>',
height: 270,
width: 480
});
</script>

7 changes: 7 additions & 0 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@
t.datetime "updated_at"
end

create_table "cheeses", :force => true do |t|
t.string "name"
t.text "comments"
t.datetime "created_at"
t.datetime "updated_at"
end

create_table "job_tags", :force => true do |t|
t.integer "job_id"
t.integer "tag_id"
Expand Down

0 comments on commit a97188c

Please sign in to comment.