add station template
This commit is contained in:
parent
9ae8ea732b
commit
63d249ded3
30
code/views/station.etlua
Normal file
30
code/views/station.etlua
Normal file
@ -0,0 +1,30 @@
|
||||
<div class="airtimes" style="background-color: black;">
|
||||
<% for i, item in ipairs(airtimes) do %>
|
||||
<div style="clear:both;height:5px;"></div>
|
||||
<div id="playingnowpic">
|
||||
<a href="https://www.intergalactic.fm/images/covers/<%= item.img_url or "blanco.png" %>" rel="ia_lightbox">
|
||||
<img style="float:left;margin-right:10px;margin-bottom:0px;height:100px;" src="https://www.intergalactic.fm/images/covers/<%= item.img_url or "blanco.png" %>">
|
||||
</a>
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<h5 class="media-heading">
|
||||
<a href="<%= url_for("artist")..item.artist_id %>"><span style="color:#ffffff !important;"><%= item.artist %></span></a>
|
||||
<span style="margin-left:5px;margin-right:5px;font-weight:normal;color:#fff;">-</span>
|
||||
<a href="<%= url_for("track")..item.track_id %>"><span style="color:#ffffff !important;"><%= item.track %></span></a>
|
||||
</h5>
|
||||
<p>
|
||||
<span style="padding-right:5px;color:#fff;">
|
||||
<% if item.release then %><%= item.release %><% end %>
|
||||
<% if item.label then %>| <%= item.label %><% end %>
|
||||
<% if item.year then %>| <%= item.year %><% end %>
|
||||
<% if item.country then %>| <%= item.country %><% end %>
|
||||
<% if item.info_url then %><% if item.info_url:match("[^.]+$") == "jpg" then %>| <a href="https://intergalactic.fm/images/covers/<%= item.info_url %>"><span style="color:#ffffff !important;"><%= item.info_url %></span></a>
|
||||
<% else %>| <a href="<%= item.info_url %>"><span style="color:#ffffff !important;"><%= item.info_url %></span></a><% end %>
|
||||
<% end %>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
<div style="clear:both;height:5px;"></div>
|
||||
<br>
|
||||
<% end %>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user