Modified image detail views
This commit is contained in:
parent
65398f1251
commit
0f842d6541
4 changed files with 36 additions and 21 deletions
|
@ -1,21 +1,24 @@
|
||||||
<% #main %>
|
<% #main %>
|
||||||
<div class="storyTitle">
|
<h1 class="storyTitle"><% image.name %></h1>
|
||||||
<% image.name %>
|
<p>
|
||||||
</div>
|
<em><% gettext "{0} on {1}" <% image.creator link %> <% image.created short %> %></em>
|
||||||
<div class="storyDate">
|
</p>
|
||||||
<% gettext "{0} on {1}" <% image.creator link %> <% image.created short %> %>
|
|
||||||
</div>
|
<p>
|
||||||
|
<div><% gettext 'To insert this image into a story or comment of this site copy and paste the following code:' %></div>
|
||||||
|
<div>
|
||||||
|
<input type="text" class="macroCode" value="<% image.macro %>" />
|
||||||
|
</div>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<% image.link edit <% gettext Edit %> %>
|
||||||
|
<% image.link delete <% gettext Delete %> %>
|
||||||
|
</p>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<% image.render | link <% image.url %> %>
|
<% image.render | link <% image.url %> %>
|
||||||
</div>
|
</div>
|
||||||
<p class="small">
|
|
||||||
<% image.link edit <% gettext Edit %> prefix="... " %>
|
|
||||||
<% image.link delete <% gettext Delete %> prefix=" ... " %>
|
|
||||||
</p>
|
|
||||||
<p class="small">
|
|
||||||
<% gettext 'To insert this image into a story or comment of this site
|
|
||||||
copy and paste the following code:' %> <code><% image.macro %></code>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<% #preview %>
|
<% #preview %>
|
||||||
<p><% image.render | image.link %></p>
|
<p><% image.render | image.link %></p>
|
||||||
|
|
|
@ -1,23 +1,23 @@
|
||||||
<% #main %>
|
<% #main %>
|
||||||
<p class="storyTitle"><% response.title %></p>
|
<h1 class="storyTitle"><% response.title %></h1>
|
||||||
|
|
||||||
<div class="ample">
|
<div class="ample">
|
||||||
<% images.link create <% gettext "Add Image" %> prefix="... " %>
|
<% images.link create <% gettext "Add Image" %> %>
|
||||||
</div>
|
</div>
|
||||||
...
|
<div>
|
||||||
<% images.link main <% gettext "By {0}" <% membership.name %> %> %>
|
<% images.link main <% gettext "By {0}" <% membership.name %> %> %>
|
||||||
<% images.link all <% gettext All %> prefix=" | " %>
|
<% images.link all <% gettext All %> prefix=" | " %>
|
||||||
|
</div>
|
||||||
|
|
||||||
<% response.pager %>
|
<% response.pager %>
|
||||||
<% response.list %>
|
<% response.list %>
|
||||||
<% response.pager %>
|
<% response.pager %>
|
||||||
|
|
||||||
<% #layout %>
|
<% #layout %>
|
||||||
<div class="pagelink"><% breadcrumbs %></div><br />
|
<h1 class="storyTitle"><% response.title %></h1>
|
||||||
<p class="storyTitle"><% response.title %></p>
|
|
||||||
|
|
||||||
<div class="ample">
|
<div class="ample">
|
||||||
<% images.link create <% gettext "Add Layout Image" %> prefix="... " %>
|
<% images.link create <% gettext "Add Layout Image" %> %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% response.pager %>
|
<% response.pager %>
|
||||||
|
|
|
@ -158,6 +158,14 @@ header, nav, article, footer, section {display:block; margin: 0;}
|
||||||
|
|
||||||
/* CSS for protected skins (user interface elements etc.) */
|
/* CSS for protected skins (user interface elements etc.) */
|
||||||
/* Edit choice */
|
/* Edit choice */
|
||||||
|
input.macroCode {
|
||||||
|
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
|
||||||
|
min-width: 200px;
|
||||||
|
font-size: 0.8em;
|
||||||
|
text-align: center;
|
||||||
|
padding: 3px 2px;
|
||||||
|
}
|
||||||
|
|
||||||
.choice input[type='text'] {
|
.choice input[type='text'] {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
width: 180px;
|
width: 180px;
|
||||||
|
|
|
@ -116,7 +116,11 @@ suffix='</h2><div class="calendarBox">' %> suffix="</div>" %>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
<% #javascript %>
|
<% #javascript %>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$("input.macroCode").focus(function() {
|
||||||
|
this.select();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
<% #values %>
|
<% #values %>
|
||||||
<%// FIXME - do we need that? (PN) %>
|
<%// FIXME - do we need that? (PN) %>
|
||||||
|
|
Loading…
Add table
Reference in a new issue