From c075eb8691f0a16d6f4eacad4f57703a392d29b8 Mon Sep 17 00:00:00 2001 From: Renaud Le Gac <renaud.legac@free.fr> Date: Tue, 28 Apr 2009 18:17:35 +0000 Subject: [PATCH] Move icons in a css file. --- static/dbjs/icons.css | 15 +++++++++++++++ views/applayout.html | 18 +----------------- 2 files changed, 16 insertions(+), 17 deletions(-) create mode 100644 static/dbjs/icons.css diff --git a/static/dbjs/icons.css b/static/dbjs/icons.css new file mode 100644 index 00000000..c4131534 --- /dev/null +++ b/static/dbjs/icons.css @@ -0,0 +1,15 @@ +.icon-grid { + background-image:url('../extjs/resources/icons/fam/grid.png'); +} +.add { + background-image:url('../extjs/resources/icons/fam/add.gif'); +} +.option { + background-image:url('../extjs/resources/icons/fam/plugin.gif'); +} +.remove { + background-image:url('../extjs/resources/icons/fam/cross.gif'); +} +.save { + background-image:url('../extjs/resources/icons/fam/save.gif'); +} diff --git a/views/applayout.html b/views/applayout.html index 58913156..b532278a 100644 --- a/views/applayout.html +++ b/views/applayout.html @@ -15,23 +15,7 @@ <script type="text/javascript" src="{{=URL(r=request,c='static/dbjs',f='combobox.js')}}"></script> <script type="text/javascript" src="{{=URL(r=request,c='static/dbjs',f='entryform.js')}}"></script> <script type="text/javascript" src="{{=URL(r=request,c='static/dbjs',f='vieweditgrid.js')}}"></script> - <style type="text/css"> - .icon-grid { - background-image:url({{=URL(r=request,c='static/extjs/resources/icons/fam',f='grid.png')}}) !important; - } - .add { - background-image:url({{=URL(r=request,c='static/extjs/resources/icons/fam',f='add.gif')}}) !important; - } - .option { - background-image:url({{=URL(r=request,c='static/extjs/resources/icons/fam',f='plugin.gif')}}) !important; - } - .remove { - background-image:url({{=URL(r=request,c='static/extjs/resources/icons/fam',f='cross.gif')}}) !important; - } - .save { - background-image:url({{=URL(r=request,c='static/extjs/resources/icons/fam',f='save.gif')}}) !important; - } - </style> + <link rel="stylesheet" type="text/css" href="{{=URL(r=request,c='static/dbjs',f='icons.css')}}"/> </head> <body> <div id="header"></div> -- GitLab