diff options
author | Sadie Powell <sadie@witchery.services> | 2024-03-26 11:32:41 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-03-26 11:52:04 +0000 |
commit | 6b1f8de885c1b2786d0109a6ec34eb2cef2182ee (patch) | |
tree | 54c14f64fa453fd15742d760d65a934c1ce9302c /modules | |
parent | 33be5de66ec9aaae870f8accf99915d595a58cc8 (diff) |
Use consistent headers and footers on all webcpanel templates.
Diffstat (limited to 'modules')
21 files changed, 62 insertions, 157 deletions
diff --git a/modules/webcpanel/templates/chanserv/access.html b/modules/webcpanel/templates/chanserv/access.html index c50434f8a..322f665c5 100644 --- a/modules/webcpanel/templates/chanserv/access.html +++ b/modules/webcpanel/templates/chanserv/access.html @@ -1,4 +1,4 @@ -{INCLUDE header.html} +{INCLUDE layout/header.loggedin.html} {INCLUDE chanserv/chanlist.html} <div class="panel-heading">Access List</div> <div class="panel-body"> @@ -74,4 +74,4 @@ {END IF} {END IF} </div> -{INCLUDE footer.html} +{INCLUDE layout/footer.loggedin.html} diff --git a/modules/webcpanel/templates/chanserv/akick.html b/modules/webcpanel/templates/chanserv/akick.html index ddfea546c..de1bc280c 100644 --- a/modules/webcpanel/templates/chanserv/akick.html +++ b/modules/webcpanel/templates/chanserv/akick.html @@ -1,4 +1,4 @@ -{INCLUDE header.html} +{INCLUDE layout/header.loggedin.html} {INCLUDE chanserv/chanlist.html} <div class="panel-heading">Akick List</div> <div class="panel-body"> @@ -58,4 +58,4 @@ </form> {END IF} </div> -{INCLUDE footer.html} +{INCLUDE layout/footer.loggedin.html} diff --git a/modules/webcpanel/templates/chanserv/drop.html b/modules/webcpanel/templates/chanserv/drop.html index c28eb051a..3a160dbb1 100644 --- a/modules/webcpanel/templates/chanserv/drop.html +++ b/modules/webcpanel/templates/chanserv/drop.html @@ -1,4 +1,4 @@ -{INCLUDE header.html} +{INCLUDE layout/header.loggedin.html} {INCLUDE chanserv/chanlist.html} <div class="panel-heading">Channels you can drop</div> <div class="panel-body"> @@ -29,4 +29,4 @@ </div> {END IF} </div> -{INCLUDE footer.html}
\ No newline at end of file +{INCLUDE layout/footer.loggedin.html} diff --git a/modules/webcpanel/templates/chanserv/main.html b/modules/webcpanel/templates/chanserv/main.html index e77626f31..6bfd05983 100644 --- a/modules/webcpanel/templates/chanserv/main.html +++ b/modules/webcpanel/templates/chanserv/main.html @@ -1,3 +1,3 @@ -{INCLUDE header.html} +{INCLUDE layout/header.loggedin.html} {INCLUDE chanserv/chanlist.html} -{INCLUDE footer.html} +{INCLUDE layout/footer.loggedin.html} diff --git a/modules/webcpanel/templates/chanserv/modes.html b/modules/webcpanel/templates/chanserv/modes.html index 3c7fe7ab3..b086e60c7 100644 --- a/modules/webcpanel/templates/chanserv/modes.html +++ b/modules/webcpanel/templates/chanserv/modes.html @@ -1,4 +1,4 @@ -{INCLUDE header.html} +{INCLUDE layout/header.loggedin.html} {INCLUDE chanserv/chanlist.html} <div class="panel-heading">Channel Mode List</div> <div class="panel-body"> @@ -53,4 +53,4 @@ </form> {END IF} </div> -{INCLUDE footer.html} +{INCLUDE layout/footer.loggedin.html} diff --git a/modules/webcpanel/templates/chanserv/set.html b/modules/webcpanel/templates/chanserv/set.html index bc785c567..3c63294ac 100644 --- a/modules/webcpanel/templates/chanserv/set.html +++ b/modules/webcpanel/templates/chanserv/set.html @@ -1,4 +1,4 @@ -{INCLUDE header.html} +{INCLUDE layout/header.loggedin.html} {INCLUDE chanserv/chanlist.html} <div class="panel-heading">Channel Information</div> <div class="panel-body"> @@ -86,4 +86,4 @@ {END IF} {END IF} </div> -{INCLUDE footer.html} +{INCLUDE layout/footer.loggedin.html} diff --git a/modules/webcpanel/templates/confirm.html b/modules/webcpanel/templates/confirm.html index 3ef3bf52d..4b5f08c67 100644 --- a/modules/webcpanel/templates/confirm.html +++ b/modules/webcpanel/templates/confirm.html @@ -1,19 +1,4 @@ -<!DOCTYPE html> -<!--[if IE 7]> <html lang="en" class="ie7"> <![endif]--> -<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]--> -<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]--> -<!--[if !IE]><!--> -<html lang="en"> - <!--<![endif]--> - <head> - <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet"> - <link href="/static/style.css" media="screen" rel="stylesheet" type="text/css" /> - <!--[if lt IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script><![endif]--> - - <title>{TITLE}</title> - </head> - <body> - <div id="frontPages" class="container"> +{INCLUDE layout/header.html} <div class="row"> <div class="col-lg-offset-4 col-lg-4"> <a href="/"> @@ -34,18 +19,4 @@ <a href="/register" class="btn btn-lg btn-default btn-block">Retry</a> </div> </div> - - <br> - <div class="row"> - <div class="col-lg-offset-3 col-lg-6"> - <div class="footer text-center"> - Anope IRC Services - © 2013-2024 Anope Team - <a href="https://www.anope.org/">https://www.anope.org/</a> - </div> - </div> - </div> - </div> - - <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> - <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> - </body> -</html> +{INCLUDE layout/footer.html} diff --git a/modules/webcpanel/templates/footer.html b/modules/webcpanel/templates/footer.html deleted file mode 100644 index 9fc3e5845..000000000 --- a/modules/webcpanel/templates/footer.html +++ /dev/null @@ -1,14 +0,0 @@ - <br> - </div> - </div> - </div> - <div class="row"> - <div class="col-lg-12"> - <div class="footer text-center"> - Anope IRC Services - © 2013-2024 Anope Team - <a href="https://www.anope.org/">https://www.anope.org/</a> - </div> - </div> - </div> - </div> - </body> -</html> diff --git a/modules/webcpanel/templates/hostserv/request.html b/modules/webcpanel/templates/hostserv/request.html index f557244d1..7bc087a6d 100644 --- a/modules/webcpanel/templates/hostserv/request.html +++ b/modules/webcpanel/templates/hostserv/request.html @@ -1,4 +1,4 @@ -{INCLUDE header.html} +{INCLUDE layout/header.loggedin.html} <div class="panel-heading">vHost Information</div> <div class="panel-body"> {FOR M IN MESSAGES} @@ -42,4 +42,4 @@ </tbody> </table> </div> -{INCLUDE footer.html} +{INCLUDE layout/footer.loggedin.html} diff --git a/modules/webcpanel/templates/layout/footer.html b/modules/webcpanel/templates/layout/footer.html new file mode 100644 index 000000000..c6550f148 --- /dev/null +++ b/modules/webcpanel/templates/layout/footer.html @@ -0,0 +1,11 @@ + <br> + <div class="row"> + <div class="col-lg-12"> + <div class="footer text-center"> + <a href="https://www.anope.org/">Anope IRC Services © 2013-2024 Anope Team</a> + </div> + </div> + </div> + </div> + </body> +</html> diff --git a/modules/webcpanel/templates/layout/footer.loggedin.html b/modules/webcpanel/templates/layout/footer.loggedin.html new file mode 100644 index 000000000..6a3a07542 --- /dev/null +++ b/modules/webcpanel/templates/layout/footer.loggedin.html @@ -0,0 +1,4 @@ + </div> + </div> + </div> +{INCLUDE layout/footer.html} diff --git a/modules/webcpanel/templates/layout/header.html b/modules/webcpanel/templates/layout/header.html new file mode 100644 index 000000000..8d473e75c --- /dev/null +++ b/modules/webcpanel/templates/layout/header.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet"> + <link href="/static/style.css" media="screen" rel="stylesheet" type="text/css" /> + + <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> + <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> + + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <title>{TITLE}</title> + </head> + <body> + <div id="frontPages" class="container"> diff --git a/modules/webcpanel/templates/header.html b/modules/webcpanel/templates/layout/header.loggedin.html index 0ccf477c5..e5b6e6d52 100644 --- a/modules/webcpanel/templates/header.html +++ b/modules/webcpanel/templates/layout/header.loggedin.html @@ -1,27 +1,4 @@ -<!DOCTYPE html> -<!--[if IE 7]> <html lang="en" class="ie7"> <![endif]--> -<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]--> -<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]--> -<!--[if !IE]><!--> -<html lang="en"> -<!--<![endif]--> - <head> - <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet"> - <link href="/static/style.css" media="screen" rel="stylesheet" type="text/css" /> - - <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> - <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> - - <!--[if lt IE 9]> - <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2/html5shiv.js"></script> - <script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.2.0/respond.js"></script> - <![endif]--> - - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title>{TITLE}</title> - </head> - <body> - <div id="frontPages" class="container"> +{INCLUDE layout/header.html} <div class="navbar navbar-default"> <span class="navbar-brand" style="margin-top: -1px">Anope Web <small>Control Panel</small></span> <ul class="nav navbar-nav"> diff --git a/modules/webcpanel/templates/login.html b/modules/webcpanel/templates/login.html index 864d74897..1c0692e69 100644 --- a/modules/webcpanel/templates/login.html +++ b/modules/webcpanel/templates/login.html @@ -1,19 +1,4 @@ -<!DOCTYPE html> -<!--[if IE 7]> <html lang="en" class="ie7"> <![endif]--> -<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]--> -<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]--> -<!--[if !IE]><!--> -<html lang="en"> - <!--<![endif]--> - <head> - <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet"> - <link href="/static/style.css" media="screen" rel="stylesheet" type="text/css" /> - <!--[if lt IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script><![endif]--> - - <title>{TITLE}</title> - </head> - <body> - <div id="frontPages" class="container"> +{INCLUDE layout/header.html} <div class="row"> <div class="col-lg-offset-4 col-lg-4"> <a href="/"> @@ -38,18 +23,4 @@ </form> </div> </div> - - <br> - <div class="row"> - <div class="col-lg-offset-3 col-lg-6"> - <div class="footer text-center"> - Anope IRC Services - © 2013-2024 Anope Team - <a href="https://www.anope.org/">https://www.anope.org/</a> - </div> - </div> - </div> - </div> - - <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> - <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> - </body> -</html> +{INCLUDE layout/footer.html} diff --git a/modules/webcpanel/templates/memoserv/memos.html b/modules/webcpanel/templates/memoserv/memos.html index b3b54d948..493835c5c 100644 --- a/modules/webcpanel/templates/memoserv/memos.html +++ b/modules/webcpanel/templates/memoserv/memos.html @@ -1,4 +1,4 @@ -{INCLUDE header.html} +{INCLUDE layout/header.loggedin.html} <div class="panel-heading">Memos List</div> <div class="panel-body"> {FOR M IN MESSAGES} @@ -109,4 +109,4 @@ </div> {END IF} </div> -{INCLUDE footer.html} +{INCLUDE layout/footer.loggedin.html} diff --git a/modules/webcpanel/templates/nickserv/alist.html b/modules/webcpanel/templates/nickserv/alist.html index f3b2e0124..2e3137d9b 100644 --- a/modules/webcpanel/templates/nickserv/alist.html +++ b/modules/webcpanel/templates/nickserv/alist.html @@ -1,4 +1,4 @@ -{INCLUDE header.html} +{INCLUDE layout/header.loggedin.html} <div class="panel-heading">Channel access list</div> <div class="panel-body"> <table id="tableInfoNorm" class="table table-hover"> @@ -20,4 +20,4 @@ </tbody> </table> </div> -{INCLUDE footer.html} +{INCLUDE layout/footer.loggedin.html} diff --git a/modules/webcpanel/templates/nickserv/cert.html b/modules/webcpanel/templates/nickserv/cert.html index 6d41a44b4..949037c06 100644 --- a/modules/webcpanel/templates/nickserv/cert.html +++ b/modules/webcpanel/templates/nickserv/cert.html @@ -1,4 +1,4 @@ -{INCLUDE header.html} +{INCLUDE layout/header.loggedin.html} <div class="panel-heading">Your certificate fingerprints</div> <div class="panel-body"> {FOR M IN MESSAGES} @@ -39,4 +39,4 @@ </div> </form> </div> -{INCLUDE footer.html} +{INCLUDE layout/footer.loggedin.html} diff --git a/modules/webcpanel/templates/nickserv/confirm.html b/modules/webcpanel/templates/nickserv/confirm.html index 66dbe34df..08c817ea5 100644 --- a/modules/webcpanel/templates/nickserv/confirm.html +++ b/modules/webcpanel/templates/nickserv/confirm.html @@ -1,4 +1,4 @@ -{INCLUDE header.html} +{INCLUDE layout/header.loggedin.html} <div class="panel-heading">Confirm your Email</div> <div class="panel-body"> {FOR M IN MESSAGES} @@ -26,4 +26,4 @@ </div> </form> </div> -{INCLUDE footer.html} +{INCLUDE layout/footer.loggedin.html} diff --git a/modules/webcpanel/templates/nickserv/info.html b/modules/webcpanel/templates/nickserv/info.html index 676e6cf76..1b4fa1e56 100644 --- a/modules/webcpanel/templates/nickserv/info.html +++ b/modules/webcpanel/templates/nickserv/info.html @@ -1,4 +1,4 @@ -{INCLUDE header.html} +{INCLUDE layout/header.loggedin.html} <div class="panel-heading">Your account information</div> <div class="panel-body"> {FOR M IN ERRORS} @@ -65,4 +65,4 @@ </div> </form> </div> -{INCLUDE footer.html} +{INCLUDE layout/footer.loggedin.html} diff --git a/modules/webcpanel/templates/operserv/akill.html b/modules/webcpanel/templates/operserv/akill.html index ffc73f8e4..2b8e67dcf 100644 --- a/modules/webcpanel/templates/operserv/akill.html +++ b/modules/webcpanel/templates/operserv/akill.html @@ -1,4 +1,4 @@ -{INCLUDE header.html} +{INCLUDE layout/header.loggedin.html} <div class="panel-heading">Akill List</div> <div class="panel-body"> {IF EXISTS NOACCESS} @@ -74,4 +74,4 @@ </form> {END IF} </div> -{INCLUDE footer.html} +{INCLUDE layout/footer.loggedin.html} diff --git a/modules/webcpanel/templates/register.html b/modules/webcpanel/templates/register.html index e71d763f6..cfe3d10d8 100644 --- a/modules/webcpanel/templates/register.html +++ b/modules/webcpanel/templates/register.html @@ -1,19 +1,4 @@ -<!DOCTYPE html> -<!--[if IE 7]> <html lang="en" class="ie7"> <![endif]--> -<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]--> -<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]--> -<!--[if !IE]><!--> -<html lang="en"> - <!--<![endif]--> - <head> - <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet"> - <link href="/static/style.css" media="screen" rel="stylesheet" type="text/css" /> - <!--[if lt IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script><![endif]--> - - <title>{TITLE}</title> - </head> - <body> - <div id="frontPages" class="container"> +{INCLUDE layout/header.html} <div class="row"> <div class="col-lg-offset-4 col-lg-4"> <a href="/"> @@ -48,18 +33,4 @@ </form> </div> </div> - - <br> - <div class="row"> - <div class="col-lg-offset-3 col-lg-6"> - <div class="footer text-center"> - Anope IRC Services - © 2013-2024 Anope Team - <a href="https://www.anope.org/">https://www.anope.org/</a> - </div> - </div> - </div> - </div> - - <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> - <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> - </body> -</html> +{INCLUDE layout/footer.html} |