[dw-free] Move "Add Feed" above "Add popular Feeds" on main feeds page
[commit: http://hg.dwscoalition.org/dw-free/rev/08c8842ed39b]
http://bugs.dwscoalition.org/show_bug.cgi?id=1012
Move form
Patch by
wyntarvox.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1012
Move form
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- htdocs/syn/index.bml
-------------------------------------------------------------------------------- diff -r 423e2a13d827 -r 08c8842ed39b htdocs/syn/index.bml --- a/htdocs/syn/index.bml Sat May 09 07:11:08 2009 +0000 +++ b/htdocs/syn/index.bml Sat May 09 07:20:41 2009 +0000 @@ -208,6 +208,25 @@ body<= $ret .= "<form method='post' action='./'>"; $ret .= LJ::html_hidden("userid", $u->{'userid'}); + $ret .= "<?h1 $ML{'.add.byurl.title'} h1?><?p $ML{'.add.byurl.text'} p?>"; + unless (LJ::get_cap($u, "synd_create")) { + my $inline; + if ($inline .= LJ::run_hook("cprod_inline", $u, 'Syn')) { + $ret .= $inline; + } else { + $ret .= "<p>".BML::ml('cprod.syn.text.v1')."</p>"; + } + } + $ret .= "<blockquote>"; + $ret .= "<p>$ML{'.feed.url'} <input size='40' maxlength='255' name='synurl' />"; + $ret .= "<p><input name='action:addcustom' type='submit' value='" . LJ::ehtml($ML{'.add'}) . "' />"; + $ret .= "</blockquote>"; + + $ret .= "</form>"; + + $ret .= "<form method='post' action='./'>"; + $ret .= LJ::html_hidden("userid", $u->{'userid'}); + if (@pop) { $ret .= "<?h1 $ML{'.add.pop.title'} h1?><?p $ML{'.add.pop.text'} p?>"; $ret .= "<p><table cellpadding='3' style='margin-bottom: 10px; width: 80%;'>"; @@ -236,23 +255,6 @@ body<= $ret .= "</table>"; } - $ret .= "</form><form method='post' action='./'>"; - $ret .= LJ::html_hidden("userid", $u->{'userid'}); - - $ret .= "<?h1 $ML{'.add.byurl.title'} h1?><?p $ML{'.add.byurl.text'} p?>"; - unless (LJ::get_cap($u, "synd_create")) { - my $inline; - if ($inline .= LJ::run_hook("cprod_inline", $u, 'Syn')) { - $ret .= $inline; - } else { - $ret .= "<p>".BML::ml('cprod.syn.text.v1')."</p>"; - } - } - $ret .= "<blockquote>"; - $ret .= "<p>$ML{'.feed.url'} <input size='40' maxlength='255' name='synurl' />"; - $ret .= "<p><input name='action:addcustom' type='submit' value='" . LJ::ehtml($ML{'.add'}) . "' />"; - $ret .= "</blockquote>"; - $ret .= "</form>"; return $ret; --------------------------------------------------------------------------------