forked from otwcode/otwarchive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
show.html.erb
67 lines (60 loc) · 3.08 KB
/
show.html.erb
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!--BACK END: this is accessed via the user dashboard so needs the user dashboard view and so therefore a navigation pathway back-->
<div class="skins home">
<div class="primary header module">
<h2 class="heading">
<%= @skin.title %> <%= ts("skin by") %> <%= skin_author_link(@skin) %>
</h2>
<blockquote class="userstuff">
<%= @skin.description.blank? ? ts("(No Description Provided)") : raw(sanitize_field(@skin, :description)) %>
</blockquote>
<dl class="stats">
<dt>Users: </dt><dd><%= @skin.preferences.count %></dd>
<dt>Role: </dt><dd><%= @skin.role %></dd>
<dt>Media: </dt><dd><%= @skin.get_media %></dd>
<dt>Condition: </dt>
<dd>
<% unless @skin.ie_condition.present? || @skin.unusable? %>normal<% end %>
<% if @skin.ie_condition.present? %><abbr title="Internet Explorer"><%= @skin.ie_condition %></abbr><% end %>
<% if @skin.unusable? %>parent only<% end %>
</dd>
</dl>
<%= render :partial => "skin_top_navigation" %>
<p class="icon"><%= skin_preview_display(@skin) %></p>
</div>
<% unless @skin.css.blank? && @skin.filename.blank? %>
<div class="css module">
<h3 class="heading"><abbr title="cascading style sheets">CSS</abbr></h3>
<blockquote><pre><%= @skin.get_css %></pre></blockquote>
</div>
<% end %>
<% unless @skin.parent_skins.empty? %>
<div class="parents module">
<h3 class="heading">Parent Skins</h3>
<ul class="index group">
<% @skin.parent_skins.each do |parent| %>
<li><%= link_to parent.title, skin_path(parent) %></li>
<% end %>
</ul>
</div>
<% end %>
<% if @skin.margin || !@skin.font.blank? || !@skin.background_color.blank? || !@skin.foreground_color.blank? || @skin.font_size || @skin.paragraph_margin || !@skin.headercolor.blank? || !@skin.accent_color.blank? %>
<div class="wizard module">
<h3 class="heading">Wizard Settings</h3>
<p class="notes">(Can be overridden by custom <abbr title="cascading style sheets">CSS</abbr>)</p>
<div class="wrapper">
<!--REVIEW: is this meta? It doesn't match-->
<dl class="meta group">
<% if @skin.margin %><dt>Margin</dt><dd><%= @skin.margin %><% end %>
<% unless @skin.font.blank? %><dt>Font</dt><dd><%= @skin.font %><% end %>
<% unless @skin.background_color.blank? %><dt>Background color</dt><dd><%= @skin.background_color %><% end %>
<% unless @skin.foreground_color.blank? %><dt>Foreground color</dt><dd><%= @skin.foreground_color %><% end %>
<% if @skin.font_size %><dt>Relative font size</dt><dd><%= @skin.font_size %><% end %>
<% if @skin.paragraph_margin %><dt>Paragraph margin</dt><dd><%= @skin.paragraph_margin %><% end %>
<% unless @skin.headercolor.blank? %><dt>Header color</dt><dd><%= @skin.headercolor %><% end %>
<% unless @skin.accent_color.blank? %><dt>Accent color</dt><dd><%= @skin.accent_color %><% end %>
</dl>
</div<>
</div>
<% end %>
<%= render :partial => "skin_navigation", :locals => {:skin => @skin} %>
</div>