<commit_before>{% extends "layout.twig" %}

{% block title %}${ "Site Configuration" | translate }{% endblock %}

{% block content %}
			<h1>${ "Site Configuration" | translate }</h1>
			{% if updated %}
			<p class="message yay">${ "Settings updated." | translate }</p>
			{% endif %}
			<form id="general_settings" class="split" action="{% admin "general_settings" %}" method="post" accept-charset="utf-8" enctype="multipart/form-data">
				<fieldset>
					<p>
						<label for="name">${ "Site Name" | translate }</label>
						<input class="text" type="text" name="name" value="${ site.name | escape }" id="name" />
					</p>
					<p>
						<label for="description">${ "Description" | translate }</label>
						<textarea name="description" rows="2" cols="40">${ site.description | escape }</textarea>
					</p>
					<p>
						<label for="url">${ "Chyrp URL" | translate }</label>
						<input class="text" type="text" name="chyrp_url" value="${ site.chyrp_url | escape }" id="url" />
					</p>
					<p>
						<label for="url">${ "Alternate URL" | translate }</label>
						<input class="text" type="text" name="url" value="{% if site.url != site.chyrp_url %}${ site.url | escape }{% endif %}" id="url" /> <span class="sub">${ "(optional)" | translate }</span>
						<small>
							${ "Enter an alternate address here if you want your homepage URL to be different from the URL where Chyrp is normally available." | translate }
						</small>
					</p>
					<p>
						<label for="email">${ "Contact E-Mail Address" | translate }</label>
						<input class="text" type="text" name="email" value="${ site.email | escape }" id="email" />
					</p>
					<p>
						<label for="timezone">${ "What time is it?" | translate }</label>
						<select name="timezone" id="timezone">
						{% for zone in timezones %}
							<option value="$zone.name"${ zone.name | option_selected(site.timezone) }>${ zone.now | strftime("%I:%M %p on %B %d, %Y" | translate) } (GMT{% if zone.offset >= 0 %}+{% endif %}$zone.offset)</option>
						{% endfor %}
						</select>
					</p>
					<p>
						<label for="locale">${ "Language" | translate }</label>
						<select name="locale" id="locale">
							{% for locale in locales %}
							<option value="$locale.code"${ locale.code | option_selected(site.locale) }>$locale.name</option>
							{% else %}
							<option value="en_US">English (US)</option>
							{% endfor %}
						</select>
					</p>

					<p class="buttons">
						<button type="submit" class="yay"><img src="images/icons/success.png" alt="success" />${ "Update" | translate }</button>
					</p><commit_msg>Always show English (US) in the locale dropdown.<commit_after>{% extends "layout.twig" %}

{% block title %}${ "Site Configuration" | translate }{% endblock %}

{% block content %}
			<h1>${ "Site Configuration" | translate }</h1>
			{% if updated %}
			<p class="message yay">${ "Settings updated." | translate }</p>
			{% endif %}
			<form id="general_settings" class="split" action="{% admin "general_settings" %}" method="post" accept-charset="utf-8" enctype="multipart/form-data">
				<fieldset>
					<p>
						<label for="name">${ "Site Name" | translate }</label>
						<input class="text" type="text" name="name" value="${ site.name | escape }" id="name" />
					</p>
					<p>
						<label for="description">${ "Description" | translate }</label>
						<textarea name="description" rows="2" cols="40">${ site.description | escape }</textarea>
					</p>
					<p>
						<label for="url">${ "Chyrp URL" | translate }</label>
						<input class="text" type="text" name="chyrp_url" value="${ site.chyrp_url | escape }" id="url" />
					</p>
					<p>
						<label for="url">${ "Alternate URL" | translate }</label>
						<input class="text" type="text" name="url" value="{% if site.url != site.chyrp_url %}${ site.url | escape }{% endif %}" id="url" /> <span class="sub">${ "(optional)" | translate }</span>
						<small>
							${ "Enter an alternate address here if you want your homepage URL to be different from the URL where Chyrp is normally available." | translate }
						</small>
					</p>
					<p>
						<label for="email">${ "Contact E-Mail Address" | translate }</label>
						<input class="text" type="text" name="email" value="${ site.email | escape }" id="email" />
					</p>
					<p>
						<label for="timezone">${ "What time is it?" | translate }</label>
						<select name="timezone" id="timezone">
						{% for zone in timezones %}
							<option value="$zone.name"${ zone.name | option_selected(site.timezone) }>${ zone.now | strftime("%I:%M %p on %B %d, %Y" | translate) } (GMT{% if zone.offset >= 0 %}+{% endif %}$zone.offset)</option>
						{% endfor %}
						</select>
					</p>
					<p>
						<label for="locale">${ "Language" | translate }</label>
						<select name="locale" id="locale">
							{% for locale in locales %}
							<option value="$locale.code"${ locale.code | option_selected(site.locale) }>$locale.name</option>
							{% endfor %}
							<option value="en_US">English (US)</option>
						</select>
					</p>

					<p class="buttons">
						<button type="submit" class="yay"><img src="images/icons/success.png" alt="success" />${ "Update" | translate }</button>
					</p>
{'fraction_non_alphanumeric': 0.20728667305848514, 'fraction_numerical': 0.0026845637583892616, 'mean_word_length': 3.2166531932093774, 'pattern_counts': {'":': 0, '<': 121, '<?xml version=': 0, '>': 123, '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': '4925576', 'n_tokens_mistral': 2184, 'n_tokens_neox': 1667, 'n_words': 449}