Adding feature to allow users to choose a syntaxhighlighter theme per project
This commit is contained in:
@@ -76,6 +76,13 @@
|
||||
<td>{if $form.f.enableads.errors}{$form.f.enableads.fieldErrors}{/if}
|
||||
{$form.f.enableads|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$form.f.syntaxtheme.labelTag}:</th>
|
||||
<td>{if $form.f.syntaxtheme.errors}{$form.f.syntaxtheme.fieldErrors}{/if}
|
||||
{$form.f.syntaxtheme|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td> </td>
|
||||
<td>
|
||||
<input type="submit" name="submit" value="{trans 'Save Changes'}" />
|
||||
|
@@ -40,7 +40,16 @@
|
||||
<script type="text/javascript" src="{media '/idf/js/syntaxhighlight/shAutoloader.js'}"></script>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{media '/idf/css/syntaxhighlight/shCore.css'}" />
|
||||
<link rel="stylesheet" type="text/css" href="{media '/idf/css/syntaxhighlight/shCoreDefault.css'}" />
|
||||
{if $project}
|
||||
{if $project.syntaxtheme}
|
||||
<link rel="stylesheet" type="text/css" href="{media '/idf/css/syntaxhighlight/shTheme'}{$project.syntaxtheme}.css" />
|
||||
{else}
|
||||
<link rel="stylesheet" type="text/css" href="{media '/idf/css/syntaxhighlight/shThemeDefault.css'}" />
|
||||
{/if}
|
||||
{else}
|
||||
<link rel="stylesheet" type="text/css" href="{media '/idf/css/syntaxhighlight/shThemeDefault.css'}" />
|
||||
{/if}
|
||||
|
||||
{appversion}
|
||||
</head>
|
||||
<body>
|
||||
|
Reference in New Issue
Block a user