MDL-58220 oauth2: Move help icons to table header

In the Site Administration -> Server -> OAuth 2 Services page.
This commit is contained in:
Damyon Wiese 2017-03-28 10:56:10 +08:00
parent 818e789a00
commit 5b926a6a09

View File

@ -55,8 +55,8 @@ class renderer extends plugin_renderer_base {
get_string('name'),
get_string('configuredstatus', 'tool_oauth2'),
get_string('loginissuer', 'tool_oauth2'),
get_string('discoverystatus', 'tool_oauth2'),
get_string('systemauthstatus', 'tool_oauth2'),
get_string('discoverystatus', 'tool_oauth2') . ' ' . $OUTPUT->help_icon('discovered', 'tool_oauth2'),
get_string('systemauthstatus', 'tool_oauth2') . ' ' . $OUTPUT->help_icon('systemaccountconnected', 'tool_oauth2'),
get_string('edit'),
];
$table->attributes['class'] = 'admintable generaltable';
@ -110,7 +110,6 @@ class renderer extends plugin_renderer_base {
$discovered = '-';
}
}
$discovered .= ' ' . $OUTPUT->help_icon('discovered', 'tool_oauth2');
$discoverystatuscell = new html_table_cell($discovered);
@ -130,7 +129,6 @@ class renderer extends plugin_renderer_base {
$authlink = html_writer::link($authurl, $icon);
$systemauth .= ' ' . $authlink;
}
$systemauth .= ' ' . $OUTPUT->help_icon('systemaccountconnected', 'tool_oauth2');
$systemauthstatuscell = new html_table_cell($systemauth);