Permalink
Fetching contributors…
Cannot retrieve contributors at this time
108 lines (92 sloc) 2.41 KB
<template name="panelPlace">
<div id="place" class="panel">
<div class="panel-heading bg-primary">
<h4 class="pull-left">
<a class="back" href="javascript:history.back()">
<i class="icon icon-arrow-l"></i>
</a>
{{#if name}} {{name}} {{else}}<i>{{i18n 'label_noname'}}</i>{{/if}}
</h4>
<a class="close pull-right" href="/">
<i class="icon icon-close"></i>
</a>
</div>
<div class="panel-body">
{{> pluginsTemplate name='panelPlace'}}
<ul class="nav nav-tabs">
{{#if settings 'templates.tabPlace_ui_info.show'}}
<li class="active">
<a href="#tab_info" data-toggle="tab">
<i class="icon icon-info"></i> <span>{{i18n 'btn_info'}}</span>
</a>
</li>
{{/if}}
{{#if settings 'templates.tabPlace_ui_hist.show'}}
<li>
<a href="#tab_histplace" data-toggle="tab">
<i class="icon icon-hist"></i> <span>{{i18n 'btn_hist'}}</span>
</a>
</li>
{{/if}}
</ul>
<div class="tab-content">
{{#if settings 'templates.tabPlace_ui_info.show'}}
<div class="tab-pane active" id="tab_info">
{{> pluginsTemplate name='tabPlace'}}
</div>
{{/if}}
{{#if settings 'templates.tabPlace_ui_hist.show'}}
<div class="tab-pane" id="tab_histplace">
{{> tabPlace_ui_hist}}
</div>
{{/if}}
</div>
</div>
</div>
</template>
<template name="panelPlace_ui_btn_checkin">
<div class="pull-left">
{{> place_btn_checkin}}
</div>
</template>
<template name="panelPlace_ui_btns">
<div class="pull-right">
{{> place_btns}}
&nbsp;<a class="btn btn-sm btn-default place-btn-map pull-right" href="/place/{{id}}/map">
<i class="icon icon-map"></i>
</a>
</div>
<br />
</template>
<template name="panelPlace_ui_info">
<ul class="list-group">
{{#if desc}}
<li class="list-group-item">
<label>{{i18n 'label_desc'}}</label><br />
<p class="place-desc">{{desc}}</p>
</li>
{{/if}}
{{#if warn}}
<li class="list-group-item alert alert-warning alert-dismissable place-warn">
<i class="icon icon-danger"></i>
<span>{{warn}}</span>
</li>
{{/if}}
</ul>
</template>
<template name="tabPlace_ui_hist">
{{#if hist.length}}
<label>{{i18n 'label_histplace'}}</label>
<ul class="list-group list-items">
{{#each hist}}
<li class="list-group-item">
{{#with userById this}}
{{> item_user}}
{{/with}}
</li>
{{/each}}
</ul>
{{else}}
<label class="text-gray">{{i18n 'label.nohistplace'}}</label>
{{/if}}
</template>