Skip to content

Commit

Permalink
Templates: name in title (munin-monitoring#1019)
Browse files Browse the repository at this point in the history
* [original] Put host name first in <TITLE>
* [munstrap] Put host name or service (NAME) first in <title>

Useful when many tabs are open.

Signed-off-by: Olivier Mehani <[email protected]>
  • Loading branch information
shtrom authored and sumpfralle committed Jan 27, 2020
1 parent 0a4891f commit 2e16d2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion templates/munstrap/templates/partial/head.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Munin <TMPL_LOOP NAME="PATH"><TMPL_IF NAME="pathname"> :: <TMPL_VAR ESCAPE="HTML" NAME="pathname"><TMPL_ELSE>Munin</TMPL_IF></TMPL_LOOP></title>
<title>
<TMPL_IF NAME="NAME"><TMPL_VAR ESCAPE="HTML" NAME="NAME"> (</TMPL_IF>Munin <TMPL_LOOP NAME="PATH"><TMPL_IF NAME="pathname"> :: <TMPL_VAR ESCAPE="HTML" NAME="pathname"></TMPL_IF></TMPL_LOOP><TMPL_IF NAME="NAME">)</TMPL_IF>
</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
Expand Down
4 changes: 3 additions & 1 deletion templates/official/partial/head.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
<TMPL_UNLESS NAME="SHOW_ZOOM_JS">
<meta http-equiv="refresh" content="300" />
</TMPL_UNLESS>
<title><TMPL_LOOP NAME="PATH"><TMPL_IF NAME="pathname"> :: <TMPL_VAR ESCAPE="HTML" NAME="pathname"><TMPL_ELSE>Munin</TMPL_IF></TMPL_LOOP></title>
<title>
<TMPL_IF NAME="NAME"><TMPL_VAR ESCAPE="HTML" NAME="NAME"> (</TMPL_IF>Munin <TMPL_LOOP NAME="PATH"><TMPL_IF NAME="pathname"> :: <TMPL_VAR ESCAPE="HTML" NAME="pathname"></TMPL_LOOP><TMPL_IF NAME="NAME">)</TMPL_IF>
</title>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=iso-8859-1" />
<meta name="author" content="Auto-generated by Munin" />
<link rel="icon" type="image/vnd.microsoft.icon" href="<TMPL_VAR NAME="R_PATH">/static/favicon.ico" />
Expand Down

0 comments on commit 2e16d2f

Please sign in to comment.