1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-12 23:09:03 +01:00
fab-manager/app/assets/templates/home.html.erb

142 lines
6.5 KiB
Plaintext
Raw Normal View History

2016-03-23 18:39:41 +01:00
<div class="alert alert-warning m-sm text-center" ng-if="(homeBlogpost != null) && (homeBlogpost != '') && (homeBlogpost != undefined)">
<span ng-bind-html="homeBlogpost"></span>
</div>
2015-05-05 03:10:25 +02:00
<div class="row wrapper">
<div class="col-lg-8">
2016-03-23 18:39:41 +01:00
<h4 class="text-sm m-t-sm" translate>{{ 'latest_documented_projects' }}</h4>
2015-05-05 03:10:25 +02:00
2016-03-23 18:39:41 +01:00
<uib-carousel interval="5000" disable-animation="true">
<uib-slide class="h480 cover r" ng-repeat="p in lastProjects" active="p.active" style="background-image:url({{p.project_image}});">
<!-- <img ng-src="{{p.project_image}}" style="margin:auto;"> -->
2015-05-05 03:10:25 +02:00
<div class="carousel-caption">
<h1 class="title"><a ui-sref="app.public.projects_show({id:p.slug})">{{p.name}}</a></h1>
2016-03-23 18:39:41 +01:00
<!-- <p class="description hidden-xs">{{p.description | humanize : 120}}</p> -->
2015-05-05 03:10:25 +02:00
</div>
2016-03-23 18:39:41 +01:00
</uib-slide>
</uib-carousel>
2015-05-05 03:10:25 +02:00
</div>
<div class="col-lg-4 m-t-lg">
2016-03-23 18:39:41 +01:00
<section class="widget panel b-a m-t-sm" ng-if="lastTweets.length > 0">
2015-05-05 03:10:25 +02:00
<div class="panel-heading b-b small">
<div class="pull-right text-xs align">
2016-03-23 18:39:41 +01:00
<a href="https://twitter.com/{{ twitterName }}" ng-show="twitterName" target="_blank">{{ 'follow_us' | translate }}
2015-05-05 03:10:25 +02:00
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x text-yellow"></i>
<i class="fa fa-twitter fa-stack-1x fa-inverse text-white"></i>
</span>
</a>
</div>
2016-03-23 18:39:41 +01:00
<h2 translate>{{ 'latest_tweets' }}</h2>
2015-05-05 03:10:25 +02:00
</div>
2016-03-23 18:39:41 +01:00
<ul class="widget-content list-group list-group-lg no-bg auto">
<li ng-repeat="tweet in lastTweets" class="text-sm list-group-item no-b clearfix" ng-bind-html="tweet.text">
</li>
2015-05-05 03:10:25 +02:00
</ul>
</section>
<section class="widget panel b-a" >
<div class="panel-heading small b-b">
2016-03-23 18:39:41 +01:00
<!-- <span class="badge inverse pull-right">110</span> -->
<h2 translate>{{ 'latest_registered_members' }}</h2>
2015-05-05 03:10:25 +02:00
</div>
2016-03-23 18:39:41 +01:00
2015-05-05 03:10:25 +02:00
<div class="row m-n">
2016-03-31 14:08:33 +02:00
<div class="col-md-6 b-b b-r block-link" ng-repeat="member in lastMembers" ui-sref="app.logged.members_show({id:member.slug})">
2015-05-05 03:10:25 +02:00
2016-03-31 14:08:33 +02:00
<div class="padder-v">
<span class="avatar avatar-block text-center">
<fab-user-avatar ng-model="member.profile.user_avatar" avatar-class="thumb-50"></fab-user-avatar>
<!-- <i class="on b-white bottom"></i> -->
<a ><span class="user-name m-l-sm text-black m-t-xs">{{member.name}}</span></a>
</span>
</div>
2016-03-23 18:39:41 +01:00
2016-03-31 14:08:33 +02:00
</div>
2016-03-23 18:39:41 +01:00
<!-- TODO EVEN <div class="col-md-6 b-b"> -->
2016-03-31 14:08:33 +02:00
</div>
2015-05-05 03:10:25 +02:00
<div class="m-t-sm m-b-sm text-center" ng-if="!isAuthenticated()">
2016-03-23 18:39:41 +01:00
<button href="#" ng-click="signup($event)" class="btn btn-warning-full width-70 font-sbold rounded text-sm" translate>{{ 'create_an_account' }}</button>
2015-05-05 03:10:25 +02:00
</div>
<div class="m-t-sm m-b-sm text-center" ng-if="isAuthenticated()">
2016-03-23 18:39:41 +01:00
<button href="#" ui-sref="app.logged.members" class="btn btn-warning-full width-70 font-sbold rounded text-sm" translate>{{ 'discover_members' }}</button>
2015-05-05 03:10:25 +02:00
</div>
2016-03-23 18:39:41 +01:00
2015-05-05 03:10:25 +02:00
</section>
2016-03-23 18:39:41 +01:00
2015-05-05 03:10:25 +02:00
</div>
<section class="col-lg-12 wrapper">
2016-06-28 11:42:20 +02:00
<h4 class="text-sm m-t-sm">{{ 'fablab_s_next_events' | translate }} <a ui-sref="app.public.events_list" class="pull-right"><i class="fa fa-tags"></i> {{ 'every_events' | translate }}</a></h4>
2015-05-05 03:10:25 +02:00
2016-03-23 18:39:41 +01:00
<div class="row" ng-repeat="event in (upcomingEvents.length/3 | array)">
2015-05-05 03:10:25 +02:00
2016-03-23 18:39:41 +01:00
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-4" ng-repeat="event in upcomingEvents.slice(3*$index, 3*$index + 3)">
2015-05-05 03:10:25 +02:00
<div class="widget panel panel-default" ui-sref="app.public.events_show({id: event.id})">
2016-03-23 18:39:41 +01:00
<div class="panel-heading picture" style="background-image: url({{event.event_image_medium}});" >
2015-05-05 03:10:25 +02:00
<img src="data:image/png;base64," data-src="holder.js/100%x100%/text:&#xf03e;/font:FontAwesome/icon" bs-holder ng-if="!event.event_image" class="img-responsive">
</div>
<div class="panel-body" style="heigth:170px;">
<div class="row">
<div class="col-xs-9">
<h1 class="m-b">{{event.title}}</h1>
</div>
<div class="col-xs-3">
<span class="v-middle badge text-xs" ng-class="'bg-{{event.categories[0].name | lowercase}}'">{{event.categories[0].name}}</span>
</div>
</div>
<p>{{event.description | humanize : 500 }}</p>
<hr/>
<div class="row">
<div class="col-sm-6 row m-b-sm">
<i class="fa fa-calendar red col-xs-3 padder-icon"></i>
2016-03-23 18:39:41 +01:00
<h6 class="m-n col-xs-9 " ng-hide="isOneDayEvent(event)">{{ 'from_date_to_date' | translate:{START:(event.start_date | amDateFormat:'L'), END:(event.end_date | amDateFormat:'L')} }}</h6>
<h6 class="m-n col-xs-9 " ng-show="isOneDayEvent(event)">{{ 'on_the_date' | translate:{DATE:(event.start_date | amDateFormat:'L')} }}</h6>
2015-05-05 03:10:25 +02:00
</div>
<div class="col-sm-6 row m-b-sm">
<i class="fa fa-clock-o red col-xs-3 padder-icon"></i>
2016-03-23 18:39:41 +01:00
<h6 class="m-n col-xs-9">
<span ng-if="event.all_day == 'true'" translate>{{ 'all_day' }}</span>
<span ng-if="event.all_day == 'false'">{{ 'from_time_to_time' | translate:{START:(event.start_date | amDateFormat:'LT'), END:(event.end_date | amDateFormat:'LT')} }}</span>
</h6>
2015-05-05 03:10:25 +02:00
</div>
<div class="col-sm-12 row m-b">
<i class="fa fa-bookmark red col-xs-1 padder-icon"></i>
<h6 class="m-n col-xs-10">
2016-03-23 18:39:41 +01:00
<span ng-if="!event.nb_total_places" translate>{{ 'free_entry' }}</span>
<span ng-if="event.nb_total_places && event.amount == 0" translate>{{ 'free_admission' }}</span>
<span ng-if="event.amount > 0">{{event.amount | currency}} {{ 'full_price' | translate }}</span>
<span ng-if="event.reduced_amount > 0"><br/>{{event.reduced_amount | currency}} {{ 'reduced_rate' | translate }}</span>
<div ng-if="event.nb_free_places == 0"><span class="badge font-sbold bg-red" translate>{{ 'event_full' }}</span></div>
2015-05-05 03:10:25 +02:00
</h6>
</div>
</div>
<div class="text-center clearfix ">
2016-03-23 18:39:41 +01:00
<div class="btn btn-lg btn-warning bg-white b-2x rounded m-t-sm m-b-sm upper text-sm width-70" ui-sref="app.public.events_show({id: event.id})" ><span translate>{{ 'consult' }}</span></div>
2015-05-05 03:10:25 +02:00
</div>
</div>
</div>
</div>
</div>
</section>
</div>