diff options
author | levinse <levinse> | 2011-02-05 06:32:36 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-02-05 06:32:36 +0000 |
commit | 3a4bf42c4385863ea83423b279b39ff6e650f79d (patch) | |
tree | d08a3d02cf75ac490af3de30d10ab3263690005d /torrus | |
parent | 95bea5564bc06ae02aa351bc1da43308e0f777d9 (diff) |
torrus, add router UI, RT10574
Diffstat (limited to 'torrus')
-rw-r--r-- | torrus/perllib/Torrus/Renderer/HTML.pm | 11 | ||||
-rw-r--r-- | torrus/templates/default-dir.html | 4 |
2 files changed, 14 insertions, 1 deletions
diff --git a/torrus/perllib/Torrus/Renderer/HTML.pm b/torrus/perllib/Torrus/Renderer/HTML.pm index d4a2a1380..4001baeed 100644 --- a/torrus/perllib/Torrus/Renderer/HTML.pm +++ b/torrus/perllib/Torrus/Renderer/HTML.pm @@ -14,7 +14,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. -# $Id: HTML.pm,v 1.5 2011-01-28 02:49:15 levinse Exp $ +# $Id: HTML.pm,v 1.6 2011-02-05 06:32:36 levinse Exp $ # Stanislav Sinyagin <ssinyagin@yahoo.com> package Torrus::Renderer::HTML; @@ -134,6 +134,15 @@ sub render_html 'actionlabel' => 'Monitor interface', ); } + elsif($type eq 'nms-add_router.html') { + return + $self->freesideComponent('/elements/popup_link.html', + 'action' => "/freeside/misc/$type", + 'label' => 'Add Router', + 'actionlabel' => 'Add Router', + ); + } + ''; }, diff --git a/torrus/templates/default-dir.html b/torrus/templates/default-dir.html index 91e6e4425..db1821260 100644 --- a/torrus/templates/default-dir.html +++ b/torrus/templates/default-dir.html @@ -7,6 +7,10 @@ [% IF matches(thepath,'Interface_Counters/$') %] [% freesideComponent('/elements/init_overlib.html') %] [% END %] +[% IF matches(thepath,'Routers/$') %] + [% freesideComponent('/elements/init_overlib.html') %] + [% popup_link('nms-add_router.html') %] +[% END %] <P>Directories you can jump to:</P> <DIV CLASS="Listing"> |