public
Description: Your friendly neighborhood nzb downloader
Clone URL: git://github.com/maddox/pyrot.git
Search Repo:
Click here to lend your support to: pyrot and make a donation at www.pledgie.com !
maddox (author)
Fri May 09 09:44:44 -0700 2008
commit  0a131f384f35df7fb8999da8c65db1b99a04abf9
tree    296a67a076629980f5e717202e0c704bc3b9be53
parent  34d9623b7574e0ee22621bbbc667c3ba9dbda313 parent  5bcce78b81508d1ecaf108974af3f9d5c4fc830a
pyrot / app / views / movies / _big_episode.iphone.erb
100644 47 lines (37 sloc) 1.531 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<div title="<%= nzb.contentable.series.title %>" id="details_<%= dom_id(nzb) %>" class="panel info_panel" selected="true">
  <img class="poster" src="<%=nzb.contentable.season_url%>"/>
 
  <dl class="meta narrow">
    <dt>Size</dt>
    <dd><%= nzb.size_in_bytes.to_i.bytes / 1024 /1024 %> MB</dd>
 
    <dt>Posted</dt>
    <dd><%= time_ago_in_words_short(nzb.pub_date) %> ago</dd>
  </dl>
 
  <ul class="meta_list_single narrow">
    <li><%= link_to "Download", downloads_path(:group => "TV", :url => "http://v3.newzbin.com/browse/post/#{nzb.newzbin_id}/", :title => nzb.contentable.nzb_title ), :method => :post%></li>
  </ul>
 
  <br class="separator"/>
  
  <div class="meta">
    <% unless nzb.contentable.description.blank? -%>
    <strong><%= nzb.contentable.description %></strong>
    <% end -%>
  </div>
  
  <dl class="meta">
    <dt>Season</dt>
    <dd><%= nzb.contentable.season_number %></dd>
    <dt>Episode</dt>
    <dd><%= nzb.contentable.episode_number %></dd>
  </dl>
 
 
  <% if nzb.details.size > 0 -%>
    <dl class="meta">
    <% nzb.details.each_pair do |key, value| -%>
      <dt><%= key.downcase %></dt>
      <dd><%= value %></dd>
    <% end -%>
    </dl>
    <% end -%>
 
    <ul id = "download_links" class="segmented">
      <li><a href="<%= series_episodes_path(nzb.contentable.series) %>">More Episodes</a></li>
      <li><%= determine_season_pass_link(nzb.contentable.series)%></li>
      <li><a href="mailto:?subject=<%= nzb.contentable.title %>&body=http://v3.newzbin.com/browse/post/<%= nzb.newzbin_id %>" target="_blank">Share Episode</a></li>
    </ul>
 
</div>