PDA

View Full Version : [Slim-Checkins] r4331 - trunk/server/HTML/EN



mherger
2005-09-16, 23:33
> Modified: trunk/server/HTML/EN/statecontrol.html
> ================================================== =================
> --- trunk/server/HTML/EN/statecontrol.html 2005-09-17 03:19:23 UTC (rev
> 4330)
> +++ trunk/server/HTML/EN/statecontrol.html 2005-09-17 03:42:09 UTC (rev
> 4331)
> @@ -1,4 +1,4 @@
> - [% state | string %][% "COLON" | string %]
> +[% IF not notext %][% state | string %][% "COLON" | string %][% END %]
> [%- FOREACH type IN modes -%]
> [%- IF $state!=loop.index || activelink %]<a [% IF classdef %]class=[%
> classdef %][% END %]href="status.html?p0=playlist&amp;p1=[% state
> %]&amp;p2=[% loop.index %]&amp;player=[% player %]&amp;start=[% start
> %]">[% END %][% IF $state==loop.index %][% activeon || '<b>' %][% END
> %][%- type|string|lower -%][% IF $state==loop.index %][% activeoff ||
^^^^^
....some languages are case sensitive, my favorite example: German ;-)


> '</b>' %][% END -%][%- IF $state!=loop.index || activelink-%]</a>[% END
> %][%- IF !loop.last %]/[% END -%]

Could we have the separater definable:

[%- IF !loop.last %][% IF separator %][% separator %][% ELSE %]/[% END%][%
END -%]

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)

kdf
2005-09-17, 00:21
On 16-Sep-05, at 11:33 PM, Michael Herger wrote:

>> p1=[% state %]&amp;p2=[% loop.index %]&amp;player=[% player
>> %]&amp;start=[% start %]">[% END %][% IF $state==loop.index %][%
>> activeon || '<b>' %][% END %][%- type|string|lower -%][% IF
>> $state==loop.index %][% activeoff ||
> ^^^^^
> ...some languages are case sensitive, my favorite example: German ;-)
>
I'm not following you on why that matters for this variable? you define
it how you like for the substitution or a simple bold tag is used is
used. I'd use a wrapper directive if I could figure out how to nest it
properly in this case.

>
>> '</b>' %][% END -%][%- IF $state!=loop.index || activelink-%]</a>[%
>> END %][%- IF !loop.last %]/[% END -%]
>
> Could we have the separater definable:
>
> [%- IF !loop.last %][% IF separator %][% separator %][% ELSE %]/[%
> END%][% END -%]
>
sure, if you can put that to use, go for it :)
-kdf

mherger
2005-09-17, 02:02
>>> $state==loop.index %][% activeoff ||
>> ^^^^^
>> ...some languages are case sensitive, my favorite example: German ;-)
>>
> I'm not following you on why that matters for this variable?

Citation and line wrapping made it a little difficult to understand my
underline... I meant the [% type|string|lower %] part. I'll see whether I
can handle this. I remember having introduced some kind of "don't
upper/lowercase" flag in strings.txt

>> Could we have the separater definable:
>>
>> [%- IF !loop.last %][% IF separator %][% separator %][% ELSE %]/[%
>> END%][% END -%]
>>
> sure, if you can put that to use, go for it :)

I know, I know...

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)