[vhffs-dev] [1043] Removed useless "Go to admin part" in various templates. |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1043
Author: beuss
Date: 2007-10-27 21:04:47 +0000 (Sat, 27 Oct 2007)
Log Message:
-----------
Removed useless "Go to admin part" in various templates.
Modified Paths:
--------------
trunk/vhffs-panel/dns/prefs.pl
trunk/vhffs-panel/git/prefs.pl
trunk/vhffs-panel/mailinglist/prefs.pl
trunk/vhffs-panel/svn/prefs.pl
trunk/vhffs-panel/templates/Makefile.am
trunk/vhffs-panel/templates/dns/prefs.tmpl
trunk/vhffs-panel/templates/git/prefs.tmpl
trunk/vhffs-panel/templates/mailinglist/prefs.tmpl
trunk/vhffs-panel/templates/svn/prefs.tmpl
Removed Paths:
-------------
trunk/vhffs-panel/templates/admin/misc/opart.tmpl
Modified: trunk/vhffs-panel/dns/prefs.pl
===================================================================
--- trunk/vhffs-panel/dns/prefs.pl 2007-10-27 20:44:18 UTC (rev 1042)
+++ trunk/vhffs-panel/dns/prefs.pl 2007-10-27 21:04:47 UTC (rev 1043)
@@ -417,15 +417,6 @@
}
- if( $user->is_admin == 1 )
- {
- my $subtemplate = new HTML::Template( filename => $templatedir."/panel/admin/misc/opart.tmpl" );
- $subtemplate->param( OID => $dns->get_oid );
- $subtemplate->param( OPART_TEXT => gettext("Go to object-part admin") );
- $subtemplate->param( OPART_TITLE => gettext("Object part") );
- $template->param( OPART => $subtemplate->output );
- }
-
my $adminpart = Vhffs::Panel::Object::admin_part( $panel, $dns );
$template->param( ADMIN_PART => $adminpart->output ) if( defined $adminpart );
}
Modified: trunk/vhffs-panel/git/prefs.pl
===================================================================
--- trunk/vhffs-panel/git/prefs.pl 2007-10-27 20:44:18 UTC (rev 1042)
+++ trunk/vhffs-panel/git/prefs.pl 2007-10-27 21:04:47 UTC (rev 1043)
@@ -141,15 +141,6 @@
$template->param( NO_SELECTED => "selected" );
}
- if( $user->is_admin == 1 )
- {
- $subtemplate = new HTML::Template( filename => $templatedir."/panel/admin/misc/opart.tmpl" );
- $subtemplate->param( OID => $git->get_oid );
- $subtemplate->param( OPART_TEXT => gettext("Go to object-part admin") );
- $subtemplate->param( OPART_TITLE => gettext("Object part") );
- $template->param( OPART => $subtemplate->output );
- }
-
my $adminpart = Vhffs::Panel::Object::admin_part( $panel, $git );
$template->param( ADMIN_PART => $adminpart->output ) if( defined $adminpart );
}
Modified: trunk/vhffs-panel/mailinglist/prefs.pl
===================================================================
--- trunk/vhffs-panel/mailinglist/prefs.pl 2007-10-27 20:44:18 UTC (rev 1042)
+++ trunk/vhffs-panel/mailinglist/prefs.pl 2007-10-27 21:04:47 UTC (rev 1043)
@@ -199,15 +199,6 @@
$template->param( EXPLAIN_ADMIN_ACL => "You can Manage rights on this service for each user in the VHFFS database. Please read help before manage it." );
$template->param( ADMIN_ACL => "Ok, go to ACL admin" );
- if( $user->is_admin == 1 )
- {
- $subtemplate = new HTML::Template( filename => $templatedir."/panel/admin/misc/opart.tmpl" );
- $subtemplate->param( OID => $list->get_oid );
- $subtemplate->param( OPART_TEXT => gettext("Go to object-part admin") );
- $subtemplate->param( OPART_TITLE => gettext("Object part") );
- $template->param( OPART => $subtemplate->output );
- }
-
my $adminpart = Vhffs::Panel::Object::admin_part( $panel, $list );
$template->param( ADMIN_PART => $adminpart->output ) if( defined $adminpart );
}
Modified: trunk/vhffs-panel/svn/prefs.pl
===================================================================
--- trunk/vhffs-panel/svn/prefs.pl 2007-10-27 20:44:18 UTC (rev 1042)
+++ trunk/vhffs-panel/svn/prefs.pl 2007-10-27 21:04:47 UTC (rev 1043)
@@ -137,15 +137,6 @@
$template->param( NO_SELECTED => "selected" );
}
- if( $user->is_admin == 1 )
- {
- $subtemplate = new HTML::Template( filename => $templatedir."/panel/admin/misc/opart.tmpl" );
- $subtemplate->param( OID => $svn->get_oid );
- $subtemplate->param( OPART_TEXT => gettext("Go to object-part admin") );
- $subtemplate->param( OPART_TITLE => gettext("Object part") );
- $template->param( OPART => $subtemplate->output );
- }
-
my $adminpart = Vhffs::Panel::Object::admin_part( $panel, $svn );
$template->param( ADMIN_PART => $adminpart->output ) if( defined $adminpart );
}
Modified: trunk/vhffs-panel/templates/Makefile.am
===================================================================
--- trunk/vhffs-panel/templates/Makefile.am 2007-10-27 20:44:18 UTC (rev 1042)
+++ trunk/vhffs-panel/templates/Makefile.am 2007-10-27 21:04:47 UTC (rev 1043)
@@ -24,7 +24,6 @@
admin/misc/moderation_applied.tmpl \
admin/misc/moderation_part.tmpl \
admin/misc/moderation.tmpl \
- admin/misc/opart.tmpl \
admin/misc/stats.tmpl \
admin/misc/su.tmpl \
admin/mysql/part.tmpl \
Deleted: trunk/vhffs-panel/templates/admin/misc/opart.tmpl
===================================================================
--- trunk/vhffs-panel/templates/admin/misc/opart.tmpl 2007-10-27 20:44:18 UTC (rev 1042)
+++ trunk/vhffs-panel/templates/admin/misc/opart.tmpl 2007-10-27 21:04:47 UTC (rev 1043)
@@ -1,6 +0,0 @@
-<h2><TMPL_VAR NAME="OPART_TITLE"></h2>
-<a href="../admin/object/edit.pl?OID=<TMPL_VAR NAME="OID">">
-<TMPL_VAR NAME="OPART_TEXT">
-</a>
-
-
Modified: trunk/vhffs-panel/templates/dns/prefs.tmpl
===================================================================
--- trunk/vhffs-panel/templates/dns/prefs.tmpl 2007-10-27 20:44:18 UTC (rev 1042)
+++ trunk/vhffs-panel/templates/dns/prefs.tmpl 2007-10-27 21:04:47 UTC (rev 1043)
@@ -224,6 +224,4 @@
</form>
-<tmpl_var name="OPART">
-
<tmpl_var escape=0 name="ADMIN_PART">
Modified: trunk/vhffs-panel/templates/git/prefs.tmpl
===================================================================
--- trunk/vhffs-panel/templates/git/prefs.tmpl 2007-10-27 20:44:18 UTC (rev 1042)
+++ trunk/vhffs-panel/templates/git/prefs.tmpl 2007-10-27 21:04:47 UTC (rev 1043)
@@ -79,6 +79,5 @@
</p>
</form>
-<tmpl_var name="OPART">
<tmpl_var escape=0 name="ADMIN_PART">
Modified: trunk/vhffs-panel/templates/mailinglist/prefs.tmpl
===================================================================
--- trunk/vhffs-panel/templates/mailinglist/prefs.tmpl 2007-10-27 20:44:18 UTC (rev 1042)
+++ trunk/vhffs-panel/templates/mailinglist/prefs.tmpl 2007-10-27 21:04:47 UTC (rev 1043)
@@ -147,6 +147,4 @@
</form>
-<tmpl_var name="OPART">
-
<tmpl_var escape=0 name="ADMIN_PART">
Modified: trunk/vhffs-panel/templates/svn/prefs.tmpl
===================================================================
--- trunk/vhffs-panel/templates/svn/prefs.tmpl 2007-10-27 20:44:18 UTC (rev 1042)
+++ trunk/vhffs-panel/templates/svn/prefs.tmpl 2007-10-27 21:04:47 UTC (rev 1043)
@@ -63,6 +63,5 @@
</p>
</form>
-<tmpl_var name="OPART">
<tmpl_var escape=0 name="ADMIN_PART">