Skip to content

Commit 13bcbe6

Browse files
authored
Updated the web portal to make it more accessable. (#464)
1 parent 9889281 commit 13bcbe6

File tree

10 files changed

+32
-32
lines changed

10 files changed

+32
-32
lines changed

defaults/config.ini.default

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ light_foreground = "#1a1a1a" ; Text color when in light mode
6161
light_foreground_smallheader = "#666666" ; Disabled text when in light mode
6262
light_borders = "#dddddd" ; Color used for borders and dividers in light mode
6363
light_footer_background = "#fafafa" ; Background color for footer in light mode
64-
light_footer_foreground = "#bbbbbb" ; Text color for footer in light mode
64+
light_footer_foreground = "#222222" ; Text color for footer in light mode
6565
light_panel_background = "#e6e6e6" ; Background color for panels on the page (ie. cluster notices)
6666
accent = "#881c1c" ; Primary accent color
6767
accent_1 = "#941e1e" ; a little brighter

resources/templates/header.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
?>
3434

3535
<!DOCTYPE html>
36-
<html>
36+
<html lang="en">
3737

3838
<head>
3939
<script
@@ -75,17 +75,17 @@
7575

7676
<body>
7777

78-
<header>
79-
<img id="imgLogo" draggable=false
80-
src="<?php echo getURL("assets", CONFIG["site"]["logo"]); ?>">
81-
<button class="hamburger vertical-align">
82-
<img
83-
draggable="false"
84-
src="<?php echo getURL("assets/menu.png") ?>"
85-
alt="Menu Button"
86-
>
87-
</button>
88-
</header>
78+
<header>
79+
<img id="imgLogo" draggable=false
80+
src="<?php echo getURL("assets", CONFIG["site"]["logo"]); ?>" alt="Unity Logo">
81+
<button class="hamburger vertical-align">
82+
<img
83+
draggable="false"
84+
src="<?php echo getURL("assets/menu.png") ?>"
85+
alt="Menu Button"
86+
>
87+
</button>
88+
</header>
8989

9090
<nav class="mainNav">
9191
<?php

webroot/admin/content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
<form id="pageForm" method="POST" action="">
2626
<?php echo UnityHTTPD::getCSRFTokenHiddenFormInput(); ?>
27-
<select name="pageSel" required>
27+
<select name="pageSel" required aria-label="select page">
2828
<option value="" selected disabled hidden>Select page...</option>
2929
<?php
3030
$pages = $SQL->getPages();

webroot/admin/notices.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<h1>Cluster Notice Management</h1>
3434
<hr>
3535

36-
<h5>Create/Edit Cluster Notice</h5>
36+
<h2>Create/Edit Cluster Notice</h2>
3737

3838
<button style='display: none;' class='btnClear'>Create New Notice Instead</button>
3939

@@ -42,7 +42,7 @@
4242
<input type="hidden" name=id>
4343
<input type="hidden" name="form_type" value="newNotice">
4444
<input type="text" name="title" placeholder="Notice Title">
45-
<input type="date" name="date">
45+
<input type="date" name="date" aria-label="date">
4646
<textarea name="content" id="editor" form="noticeForm"></textarea>
4747
<input style='display: inline-block;' type="submit" value="Create Notice">
4848
</form>
@@ -54,7 +54,7 @@
5454
</div>
5555

5656
<hr>
57-
<h5>Existing Notices</h5>
57+
<h2>Existing Notices</h2>
5858

5959
<?php
6060

webroot/admin/pi-mgmt.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
<!-- <input type="text" id="tableSearch" placeholder="Search..."> -->
5757

58-
<h5>Pending PI Requests</h5>
58+
<h2>Pending PI Requests</h2>
5959
<table class="searchable">
6060
<tr>
6161
<th>Name</th>
@@ -97,7 +97,7 @@
9797

9898
</table>
9999

100-
<h5>List of PIs</h5>
100+
<h2>List of PIs</h2>
101101

102102
<table class="searchable longTable sortable filterable">
103103
<tr>

webroot/admin/user-mgmt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class="filterSearch"
5858
foreach ($user_attributes as $attributes) {
5959
$uid = $attributes["uid"][0];
6060
if ($SQL->accDeletionRequestExists($uid)) {
61-
echo "<tr style='color:grey; font-style: italic'>";
61+
echo "<tr style='color:#555555; font-style: italic'>";
6262
} else {
6363
echo "<tr>";
6464
}

webroot/css/global.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,10 @@ code {
3636

3737
a {
3838
color: var(--accent);
39-
text-decoration: none;
4039
}
4140

4241
a:hover {
43-
text-decoration: underline;
42+
color: var(--accent_2);
4443
}
4544

4645
h1 {

webroot/panel/account.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
echo "
107107
<h1>Account Settings</h1>
108108
<hr>
109-
<h5>Account Details</h5>
109+
<h2>Account Details</h2>
110110
<table>
111111
<tr>
112112
<td>Username</th>
@@ -122,7 +122,7 @@
122122
</tr>
123123
</table>
124124
<hr>
125-
<h5>Account Status</h5>
125+
<h2>Account Status</h2>
126126
";
127127

128128
$isPI = $USER->isPI();
@@ -206,7 +206,7 @@
206206
}
207207
echo "</form>";
208208
}
209-
echo "<hr><h5>SSH Keys</h5>";
209+
echo "<hr><h2>SSH Keys</h2>";
210210

211211
$sshPubKeys = $USER->getSSHKeys();
212212

@@ -218,11 +218,12 @@
218218
$CSRFTokenHiddenFormInput = UnityHTTPD::getCSRFTokenHiddenFormInput();
219219
echo
220220
"<div class='key-box'>
221-
<textarea spellcheck='false' readonly>" . $sshPubKeys[$i] . "</textarea>
221+
<textarea spellcheck='false' readonly aria-label='key box'>" . $sshPubKeys[$i] . "</textarea>
222222
<form
223223
action='' id='del-" . $i . "'
224224
onsubmit='return confirm(\"Are you sure you want to delete this SSH key?\");'
225225
method='POST'
226+
aria-label='delete key'
226227
>
227228
$CSRFTokenHiddenFormInput
228229
<input type='hidden' name='delIndex' value='$i' />
@@ -236,11 +237,11 @@
236237
echo "
237238
<button type='button' class='plusBtn btnAddKey'><span>&#43;</span></button>
238239
<hr>
239-
<h5>Login Shell</h5>
240+
<h2>Login Shell</h2>
240241
<form action='' method='POST'>
241242
$CSRFTokenHiddenFormInput
242243
<input type='hidden' name='form_type' value='loginshell' />
243-
<select id='loginSelector' class='code' name='shellSelect'>
244+
<select id='loginSelector' class='code' name='shellSelect' aria-label='Login Shell'>
244245
";
245246
foreach (CONFIG["loginshell"]["shell"] as $shell) {
246247
echo "<option>$shell</option>";
@@ -251,7 +252,7 @@
251252
<input id='submitLoginShell' type='submit' value='Set Login Shell' />
252253
</form>
253254
<hr>
254-
<h5>Account Deletion</h5>
255+
<h2>Account Deletion</h2>
255256
";
256257

257258
if ($hasGroups) {

webroot/panel/groups.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
}
8888

8989
if (count($req_filtered) > 0) {
90-
echo "<h5>Pending Requests</h5>";
90+
echo "<h2>Pending Requests</h2>";
9191
echo "<table>";
9292
foreach ($req_filtered as $request) {
9393
$requested_account = new UnityGroup(
@@ -123,7 +123,7 @@
123123
}
124124
}
125125

126-
echo "<h5>Current Groups</h5>";
126+
echo "<h2>Current Groups</h2>";
127127

128128
if ($USER->isPI() && count($PIGroupGIDs) == 1) {
129129
$url = getURL("panel/pi.php");

webroot/panel/pi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
}
8989
}
9090

91-
echo "<h5>Users in Group</h5>";
91+
echo "<h2>Users in Group</h2>";
9292

9393
echo "<table>";
9494

0 commit comments

Comments
 (0)