fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
df8c4d0
)
Pierwszy przycisk w toolbarze jest aktywowany po zaĆadowaniu strony.
author
zuber
<marek@stepniowski.com>
Wed, 19 Aug 2009 21:47:10 +0000
(23:47 +0200)
committer
zuber
<marek@stepniowski.com>
Wed, 19 Aug 2009 21:47:10 +0000
(23:47 +0200)
apps/toolbar/templates/toolbar/toolbar.html
patch
|
blob
|
history
diff --git
a/apps/toolbar/templates/toolbar/toolbar.html
b/apps/toolbar/templates/toolbar/toolbar.html
index
0338417
..
dcc64a9
100644
(file)
--- a/
apps/toolbar/templates/toolbar/toolbar.html
+++ b/
apps/toolbar/templates/toolbar/toolbar.html
@@
-2,13
+2,13
@@
<div id="toolbar">
<ol id="toolbar-tabs">
{% for group in groups %}
<div id="toolbar">
<ol id="toolbar-tabs">
{% for group in groups %}
- <li p:button-list="{{ group.slug }}">{{ group.name }}</li>
+ <li p:button-list="{{ group.slug }}"
{% if forloop.first %}class="active"{% endif %}
>{{ group.name }}</li>
{% endfor %}
</ol>
<div style="clear: both; height: 0; width: 0"> </div>
<div id="toolbar-buttons">
{% for group in groups %}
{% endfor %}
</ol>
<div style="clear: both; height: 0; width: 0"> </div>
<div id="toolbar-buttons">
{% for group in groups %}
- <ol id="{{ group.slug }}"
style="display:none"
>
+ <ol id="{{ group.slug }}"
{% if not forloop.first %}style="display:none"{% endif %}
>
{% for button in group.button_set.all %}
<li p:tag="{{ button.tag }}" {% if button.key %}p:key="{{ button.key|keycode }}" title="Ctrl+{{ button.key }}"{% endif %}>{{ button.label }}</li>
{% endfor %}
{% for button in group.button_set.all %}
<li p:tag="{{ button.tag }}" {% if button.key %}p:key="{{ button.key|keycode }}" title="Ctrl+{{ button.key }}"{% endif %}>{{ button.label }}</li>
{% endfor %}