tazpanel diff styles/default/header.html @ rev 398
Now modules (read: tazpkg) can add its own styles.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Dec 17 20:13:19 2014 +0200 (2014-12-17) |
parents | 8b420d64bdfe |
children | 106b85c1951c |
line diff
1.1 --- a/styles/default/header.html Mon Jun 23 15:27:55 2014 +0300 1.2 +++ b/styles/default/header.html Wed Dec 17 20:13:19 2014 +0200 1.3 @@ -5,7 +5,13 @@ 1.4 <title>$TITLE</title> 1.5 <meta charset="utf-8" /> 1.6 <link rel="shortcut icon" href="/styles/$STYLE/favicon.ico" /> 1.7 - <link rel="stylesheet" type="text/css" href="/styles/$STYLE/style.css" /> 1.8 +EOT 1.9 + 1.10 +for css in $(cd /var/www/tazpanel; find ./styles/$STYLE -iname '*.css' | sed 's|./|/|'); do 1.11 + echo " <link rel=\"stylesheet\" type=\"text/css\" href=\"$css\" />" 1.12 +done 1.13 + 1.14 +cat << EOT 1.15 <!-- Function to hide the loading message when page is generated. --> 1.16 <script type="text/javascript"> 1.17 function showLoading(){