<commit_before>{title help="Edit+CSS"}{tr}Edit Style Sheet{/tr}{/title}

<div>
<form method="post" action="tiki-edit_css.php">
{tr}Style Sheet{/tr} : 
{if $action eq "edit"}
<input type="text" name="editstyle" value="{$editstyle}" />
<input type="submit" name="save" value="{tr}Save{/tr}" /> 
<a href="tiki-edit_css.php?editstyle={$editstyle}" class="link">{tr}Cancel{/tr}</a>
<div style="padding:4px;border-bottom:1px solid #c3b3a3;">
<textarea name="data" rows="42" cols="80" wrap="virtual" style="padding:7px;padding-right:0;">{$data|escape}</textarea>
</div>
{else}
<select name="editstyle">
<option value="" style="background-color:#efdece;color:#766656;border-bottom:1px dashed #787878;">{tr}choose a stylesheet{/tr}</option>
{section name=t loop=$list}
<option value="{$list[t]|escape}"{if $list[t] eq $editstyle} selected="selected"{/if}>{$list[t]}</option>
{/section}
</select>
<input type="submit" name="try" value="{tr}Try{/tr}" />
<input type="submit" name="display" value="{tr}Display{/tr}" />
<input type="submit" name="edit" value="{tr}Edit{/tr}" /><br />
<div class="">{tr}File with names appended by -{$user} are modifiable, others are only duplicable and be used as model.{/tr}</div>

{section name=l loop=$css}
<div style="padding:4px;">
<div style="float:right;">{$css[l].id}</div>
<div class="comment">{$css[l].comment}</div>
{section name=i loop=$css[l].items}
<div style="font-weight: bold;">{$css[l].items[i]}</div>
{/section}
{foreach item=v key=a from=$css[l].attributes}
<div style="margin-left:10px;">{$a|string_format:"%'.-22s"} : 
{$v|string_format:"%-56.s"}
{if $v[0] eq "#"}
<span style="height:8px;width:30px;background-color:{$v};">&nbsp;&nbsp;&nbsp;&nbsp;</span>
{elseif $a|truncate:6:"" eq "border"}
<span style="height:8px;width:30px;{$a}:{$v};">&nbsp;&nbsp;&nbsp;&nbsp;</span>
{/if}
</div>
{/foreach}
</div>
<hr />
{/section}
{/if}

</form>
</div><commit_msg>[FIX]css: take away invalid comment<commit_after>{title help="Edit+CSS"}{tr}Edit Style Sheet{/tr}{/title}

<div class=:navbar">
	 {if ($prefs.feature_view_tpl eq 'y' || $prefs.feature_edit_templates eq 'y') && $tiki_p_edit_templates == 'y'}
		 {button href="tiki-edit_templates.php" _text="{tr}View Templates{/tr}"}
	{/if}
</div>

<form method="post" action="tiki-edit_css.php">
{tr}Style Sheet{/tr} : 
{if $action eq "edit"}
<input type="text" name="editstyle" value="{$editstyle}" />
<input type="submit" name="save" value="{tr}Save{/tr}" />
{button  href="tiki-edit_css.php?editstyle=$editstyle" _text="{tr}Cancel{/tr}"}
{if $tikidomain}
{tr}The file will be saved in:{/tr} styles/{$tikidomain}
{/if}
<div style="padding:4px;border-bottom:1px solid #c3b3a3;">
<textarea name="data" rows="42" cols="80" wrap="virtual" style="padding:7px;padding-right:0;">{$data|escape}</textarea>
</div>
{else}
{assign var=shortStyle value=$prefs.style|replace:'.css':''}
<select name="editstyle">
<option value="" style="background-color:#efdece;color:#766656;border-bottom:1px dashed #787878;">{tr}choose a stylesheet{/tr}</option>
{section name=t loop=$list}
<option value="{$list[t]|escape}"{if $list[t] eq $editstyle or (empty($editstyle) and $list[t] eq $shortStyle)} selected="selected"{/if}>{$list[t]|escape}</option>
{/section}
</select>
<input type="submit" name="try" value="{tr}Try{/tr}" />
<input type="submit" name="display" value="{tr}Display{/tr}" />
<input type="submit" name="edit" value="{tr}Edit{/tr}" />

{section name=l loop=$css}
<div style="padding:4px;">
<div style="float:right;">{$css[l].id}</div>
<div class="comment">{$css[l].comment}</div>
{section name=i loop=$css[l].items}
<div style="font-weight: bold;">{$css[l].items[i]}</div>
{/section}
{foreach item=v key=a from=$css[l].attributes}
<div style="margin-left:10px;">{$a|string_format:"%'.-22s"} : 
{$v|string_format:"%-56.s"}
{if $v[0] eq "#"}
<span style="height:8px;width:30px;background-color:{$v};">&nbsp;&nbsp;&nbsp;&nbsp;</span>
{elseif $a|truncate:6:"" eq "border"}
<span style="height:8px;width:30px;{$a}:{$v};">&nbsp;&nbsp;&nbsp;&nbsp;</span>
{/if}
</div>
{/foreach}
</div>
<hr />
{/section}
{/if}

</form>
{'fraction_non_alphanumeric': 0.257590597453477, 'fraction_numerical': 0.01909892262487757, 'mean_word_length': 8.097995545657016, 'pattern_counts': {'":': 0, '<': 76, '<?xml version=': 0, '>': 76, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2200405', 'n_tokens_mistral': 1648, 'n_tokens_neox': 1573, 'n_words': 280}