Removed export temporary from UNO. Removed 'Remove Channel' from UNO, cause a UNO member has only 1 channel, so it's logical to remove the acccount (by experience on UNO hub). Styling oauth settings.

This commit is contained in:
jeroenpraat 2016-02-18 16:53:04 +01:00
parent eeed7077ca
commit fe392a3144
4 changed files with 22 additions and 11 deletions

View File

@ -542,11 +542,14 @@ function widget_settings_menu($arr) {
'selected' => ((argv(1) === 'oauth') ? 'active' : ''), 'selected' => ((argv(1) === 'oauth') ? 'active' : ''),
); );
// IF can go away when UNO export and import is fully functional
if(! UNO) {
$tabs[] = array( $tabs[] = array(
'label' => t('Export channel'), 'label' => t('Export channel'),
'url' => $a->get_baseurl(true) . '/uexport', 'url' => $a->get_baseurl(true) . '/uexport',
'selected' => '' 'selected' => ''
); );
}
if($role === false || $role === 'custom') { if($role === false || $role === 'custom') {
$tabs[] = array( $tabs[] = array(

View File

@ -1,6 +1,6 @@
<div class="generic-content-wrapper"> <div class="generic-content-wrapper">
<div class="section-title-wrapper"> <div class="section-title-wrapper">
<a title="{{$removechannel}}" class="btn btn-danger btn-xs pull-right" href="removeme"><i class="icon-trash"></i>&nbsp;{{$removeme}}</a> {{if $server_role != 'basic'}}<a title="{{$removechannel}}" class="btn btn-danger btn-xs pull-right" href="removeme"><i class="icon-trash"></i>&nbsp;{{$removeme}}</a>{{/if}}
<h2>{{$ptitle}}</h2> <h2>{{$ptitle}}</h2>
<div class="clear"></div> <div class="clear"></div>
</div> </div>

View File

@ -1,7 +1,9 @@
<div class="generic-content-wrapper-styled"> <div class="generic-content-wrapper">
<h1>{{$title}}</h1> <div class="section-title-wrapper">
<h1>{{$title}}</h1>
</div>
<div class="section-content-tools-wrapper">
<form action="settings/oauth" method="post" autocomplete="off"> <form action="settings/oauth" method="post" autocomplete="off">
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'> <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
@ -31,3 +33,4 @@
</form> </form>
</div> </div>
</div>

View File

@ -1,5 +1,8 @@
<h1>{{$title}}</h1> <div class="generic-content-wrapper">
<div class="section-title-wrapper">
<h1>{{$title}}</h1>
</div>
<div class="section-content-tools-wrapper">
<form method="POST"> <form method="POST">
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'> <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
@ -15,3 +18,5 @@
</div> </div>
</form> </form>
</div>
</div>