web list does not show a link to a published version if it has none [Jesse Newland]
visual display if webs are pass-protected (div background)
This commit is contained in:
parent
8bfe83fa20
commit
1005d92bd1
|
@ -1,18 +1,21 @@
|
||||||
<% @title = "Wiki webs" %>
|
<% @title = "Wiki webs" %>
|
||||||
|
|
||||||
<ul>
|
|
||||||
<% @webs.each do |web| %>
|
<% @webs.each do |web| %>
|
||||||
<li>
|
|
||||||
<% if web.published %>
|
<% if web.password %> <div style="padding: 4px; background-image: url(/images/bg_protected.gif)">
|
||||||
<%= link_to_page 'HomePage', web, web.name, :mode => 'publish' %>
|
<% else %> <div style="padding: 4px;"> <% end %>
|
||||||
(read-only) /
|
<span>
|
||||||
<%= link_to_page 'HomePage', web, 'editable version', :mode => 'show' %> (requires login)
|
|
||||||
<% else %>
|
|
||||||
<%= link_to_page 'HomePage', web, web.name, :mode => 'show' %>
|
<%= link_to_page 'HomePage', web, web.name, :mode => 'show' %>
|
||||||
|
<% if web.published? %>
|
||||||
|
(<%= link_to_page 'HomePage', web, 'published version', :mode => 'publish' %>)
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="byline" style="margin-bottom: 0px">
|
<div class="byline" style="margin-bottom: 0px">
|
||||||
<%= web.pages.length %> pages by <%= web.authors.length %> authors
|
<%= web.pages.length %> pages by <%= web.authors.length %> authors
|
||||||
</div>
|
</div>
|
||||||
</li>
|
|
||||||
|
</span>
|
||||||
|
</div><br>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
BIN
public/images/bg_normal.gif
Normal file
BIN
public/images/bg_normal.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 48 B |
BIN
public/images/bg_protected.gif
Normal file
BIN
public/images/bg_protected.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 48 B |
Loading…
Reference in a new issue