[dw-free] Revamp /update
[commit: http://hg.dwscoalition.org/dw-free/rev/73cf5dc9f446]
http://bugs.dwscoalition.org/show_bug.cgi?id=2524
Mark links that open an external page. Style "Create Poll" link.
Patch by
fu.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2524
Mark links that open an external page. Style "Create Poll" link.
Patch by
Files modified:
- htdocs/stc/postform.css
- views/entry/form.tt
- views/entry/module-crosspost.tt
- views/entry/module-tags.tt
--------------------------------------------------------------------------------
diff -r 273093f01d01 -r 73cf5dc9f446 htdocs/stc/postform.css
--- a/htdocs/stc/postform.css Thu Dec 08 19:06:21 2011 +0800
+++ b/htdocs/stc/postform.css Fri Dec 09 17:00:45 2011 +0800
@@ -188,6 +188,23 @@
width: 100%;
}
+.subtoolbar a {
+ text-decoration: none;
+ margin-right: 0.5em;
+}
+
+.external-link {
+ position: relative;
+ padding-right: 12px;
+ margin-right: 0.5em;
+}
+
+.external-link .ui-icon-newwin {
+ position: absolute;
+ right: 0;
+ bottom: 0;
+}
+
#main-tools {
-webkit-border-top-left-radius: 8px;
-webkit-border-top-right-radius: 8px;
diff -r 273093f01d01 -r 73cf5dc9f446 views/entry/form.tt
--- a/views/entry/form.tt Thu Dec 08 19:06:21 2011 +0800
+++ b/views/entry/form.tt Fri Dec 09 17:00:45 2011 +0800
@@ -174,7 +174,7 @@
<!-- TODO make this only take up one tab area? -->
<div class="toolbar">
<div id="main-tools" class='subtoolbar'>
- <a href="[%site.root%]/poll/create">Create Poll</a>
+ <a href="[%site.root%]/poll/create" class="external-link" target="_blank">Create Poll <span class="ui-icon ui-icon-newwin"></span></a>
[%- preview_label = 'talk.btn.preview' | ml;
form.submit( value = preview_label
name = "action:preview"
diff -r 273093f01d01 -r 73cf5dc9f446 views/entry/module-crosspost.tt
--- a/views/entry/module-crosspost.tt Thu Dec 08 19:06:21 2011 +0800
+++ b/views/entry/module-crosspost.tt Fri Dec 09 17:00:45 2011 +0800
@@ -19,7 +19,7 @@
<div class="inner">
<span class="crosspost-settings">
- <a href="[% crosspost_url %]">[% ".settings.link" | ml %]</a>
+ <a href="[% crosspost_url %]" class="external-link" target="_blank">[% ".settings.link" | ml %] <span class="ui-icon ui-icon-newwin"></span></a>
</span>
[% IF crosspostlist.size > 0 %]
diff -r 273093f01d01 -r 73cf5dc9f446 views/entry/module-tags.tt
--- a/views/entry/module-tags.tt Thu Dec 08 19:06:21 2011 +0800
+++ b/views/entry/module-tags.tt Fri Dec 09 17:00:45 2011 +0800
@@ -25,7 +25,7 @@
) -%]
[% IF journalu %]
- <a id="taglist_link" href="[% journalu.journal_base %]/tag/">[% ".link.tagspage" | ml %] </a>
+ <a id="taglist_link" class="external-link" target="_blank" href="[% journalu.journal_base %]/tag/">[% ".link.tagspage" | ml %] <span class="ui-icon ui-icon-newwin"></span></a>
[% END %]
</div>
</fieldset>
--------------------------------------------------------------------------------
