<commit_before><template name="locationDetails">

	{{#if isEditing}}
			{{>location_edit}}
	{{/if}}

<!-- copied from example to coursedetails to here... could be set in template-controller write into this. nicht global in session ->variable in template -->
	{{#with location}}
	{{#unless isEditing}}
		<div class="course_main">
			<h1 class="name">{{name}}</h1>
			<p class="small">{{mf 'location.details.time_created' 'Time created:'}} {{dateformat time_created}}, {{mf 'location.details.last_edited' 'Last edited:'}} {{dateformat time_lastedit}} {{mf 'location.details.created_by' 'Created by:'}} {{username createdby}}, {{!--> show_locationcategories--}}</p>
			
			<img src="{{picture}}" height="137" align="top">
			<p class="descr">{{mf 'location.details.desc' 'Description:'}} {{description}}</p>
			<p>{{mf 'location.details.hosts_admin' 'Hosts/Admin:'}}<ul class='hosts'>
			{{#each hosts}}
				<li>
					{{>profilelink this}}
				</li>
			{{/each}}
			</ul></p>
			{{#if contact.web}} <p>{{mf 'location.details.online' 'Website:'}} <a href="{{contact.web}}">{{contact.web}}</a></p> {{/if}}
			<p>{{mf 'location.details.address' 'Address:'}} {{address}}</p>
			{{#if route}} <p>{{mf 'location.details.how_go_there' 'How to go there:'}} {{route}}</p> {{/if}}
			{{#if maxPeople}} <p>{{mf 'location.details.max_ppl' 'Maximum People:'}} {{maxPeople}} </p>  {{/if}}
			{{#if maxWorkplaces}} <p>{{mf 'location.details.max_workplaces' 'Maximum Workplaces:'}} {{maxWorkplaces}} </p> {{/if}}
			{{#if infra2.def }} <p>{{mf 'location.details.has_projector' 'Has a Projector!'}} </p> {{/if}}
			{{#if specials}} <p>{{mf 'location.details.specials' 'Specials:'}} {{specials}} </p> {{/if}}


			{{#if loc}}
			<div>{{mf 'location.details.map' 'Map:'}}
				<div>{{>map markers=markers width=300 height=300 mini=true}}</div>
				{{loc.coordinates.[1]}}{{loc.coordinates.[0]}}
			</div>
			{{/if}}



			<input type="button" class="contact" value="Contact" /> <br><br>
			{{#if canEditLocation}}
			{{mf 'location.details.yourHost' 'You are Host here:'}}
			<input type="button" class="edit" value="Edit" />
			<input type="button" class="del" value="Delete" />
			{{/if}}
		</div>
	{{/unless}}
	{{/with}}
<!--
TODO: locationedit -> create in a new file location.edit  that is location.create aswell.
in edit mode: add other user to host in this location:
{search user}->{add user}
-->


</template><commit_msg>ultra basic stiling of LocationDetail and LocationList<commit_after><template name="locationDetails">
<div style="padding-left:40px">
	{{#if isEditing}}
			{{>location_edit}}
	{{/if}}

<!-- copied from example to coursedetails to here... could be set in template-controller write into this. nicht global in session ->variable in template -->
	{{#with location}}
	{{#unless isEditing}}
		<div class="course_main">
			<h1 class="name">{{name}}</h1>
			<p class="small">{{mf 'location.details.time_created' 'Time created:'}} {{dateformat time_created}}, {{mf 'location.details.last_edited' 'Last edited:'}} {{dateformat time_lastedit}} {{mf 'location.details.created_by' 'Created by:'}} {{username createdby}}, {{!--> show_locationcategories--}}</p>
			
			<img src="{{picture}}" height="137" align="top">
			<p class="descr">{{mf 'location.details.desc' 'Description:'}} {{description}}</p>
			<p>{{mf 'location.details.hosts_admin' 'Hosts/Admin:'}}<ul class='hosts'>
			{{#each hosts}}
				<li>
					{{>profilelink this}}
				</li>
			{{/each}}
			</ul></p>
			{{#if contact.web}} <p>{{mf 'location.details.online' 'Website:'}} <a href="{{contact.web}}">{{contact.web}}</a></p> {{/if}}
			<p>{{mf 'location.details.address' 'Address:'}} {{address}}</p>
			{{#if route}} <p>{{mf 'location.details.how_go_there' 'How to go there:'}} {{route}}</p> {{/if}}
			{{#if maxPeople}} <p>{{mf 'location.details.max_ppl' 'Maximum People:'}} {{maxPeople}} </p>  {{/if}}
			{{#if maxWorkplaces}} <p>{{mf 'location.details.max_workplaces' 'Maximum Workplaces:'}} {{maxWorkplaces}} </p> {{/if}}
			{{#if infra2.def }} <p>{{mf 'location.details.has_projector' 'Has a Projector!'}} </p> {{/if}}
			{{#if specials}} <p>{{mf 'location.details.specials' 'Specials:'}} {{specials}} </p> {{/if}}


			{{#if loc}}
			<div>{{mf 'location.details.map' 'Map:'}}
				<div>{{>map markers=markers width=300 height=300 mini=true}}</div>
				{{loc.coordinates.[1]}}{{loc.coordinates.[0]}}
			</div>
			{{/if}}



			<input type="button" class="contact" value="Contact" /> <br><br>
			{{#if canEditLocation}}
			{{mf 'location.details.yourHost' 'You are Host here:'}}
			<input type="button" class="edit" value="Edit" />
			<input type="button" class="del" value="Delete" />
			{{/if}}
		</div>
	{{/unless}}
	{{/with}}
<!--
TODO: locationedit -> create in a new file location.edit  that is location.create aswell.
in edit mode: add other user to host in this location:
{search user}->{add user}
-->

</div>
</template>
{'fraction_non_alphanumeric': 0.23844580777096114, 'fraction_numerical': 0.006134969325153374, 'mean_word_length': 4.687209302325582, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 107, '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': '2644710', 'n_tokens_mistral': 1883, 'n_tokens_neox': 1653, 'n_words': 406}