-
Notifications
You must be signed in to change notification settings - Fork 1
/
news.html
88 lines (80 loc) · 4.36 KB
/
news.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
layout: default
title: "Новини"
description: "Огляд свіжих новин моделізму з різних джерел."
description_meta: "Огляд свіжих новин моделізму з різних джерел."
date: 2015-01-21 10:10:04
permalink: /news/
---
<div class="container">
<h1>{{ page.title }}</h1>
<p class="lead">{{ page.description }}</p>
<div class="container">
<div class="row">
<div ng-app="App" ng-cloak>
<div ng-controller="NewsListM" ng-init="showData()">
<div class="col-sm-2 col-md-2">
<form name="filterNews" id="filterNews">
<h4>Фільтр по категоріях</h4>
<div class="cat-item">
<input value="cat-aircraft" id="cat-aircraft" type="checkbox" data-ng-model='search.categories' data-ng-true-value="'Aircraftflite'">
<label for="cat-aircraft">Літаки</label>
</div>
<div class="cat-item">
<input value="cat-helicopters" id="cat-helicopters" type="checkbox" data-ng-model='search.categories' data-ng-true-value="'Helicopters'">
<label for="cat-helicopters">Гелікоптери</label>
</div>
<div class="cat-item">
<input value="cat-multicopters" id="cat-multicopters" type="checkbox" data-ng-model='search.categories' data-ng-true-value="'Multicopters'">
<label for="cat-multicopters">Мультикоптери</label>
</div>
<div class="cat-item">
<input value="cat-transmitters" id="cat-transmitters" type="checkbox" data-ng-model='search.categories' data-ng-true-value="'Transmitters'">
<label for="cat-transmitters">Апаратура керування</label>
</div>
<div class="cat-item">
<input value="cat-video" id="cat-video" type="checkbox" data-ng-model='search.categories' data-ng-true-value="'Video'">
<label for="cat-video">Відео</label>
</div>
<div class="cat-item">
<input value="cat-parts" id="cat-parts" type="checkbox" data-ng-model='search.categories' data-ng-true-value="'Parts'">
<label for="cat-parts">Периферія</label>
</div>
</form>
</div>
<div class="news-item col-sm-10 col-md-10">
<div class="row" itemscope itemtype="http://schema.org/Article">
<div class="news-item col-sm-6 col-md-4" ng-repeat="nitem in filterWIthSearch()">
<div class="thumbnail">
<img alt="{(nitem.title)}" ng-src="{(nitem.img)}" itemprop="image">
</div>
<div class="caption">
<h3 class="title">
<a target="_blank" title="{(nitem.title)}" ng-href="{(nitem.url)}" itemprop="name">
{(nitem.title)}
</a>
</h3>
<small class="bg-info" itemprop="datePublished" content="{(nitem.published| date:'yyyy-MM-dd')}">{(nitem.published| date:'mediumDate')}</small>
<p class="description" itemprop="articleBody">{(nitem.description)}</p>
<a target="_blank" ng-href="{(nitem.url)}" class="btn btn-primary" itemprop="url">Читати...</a>
</div>
</div>
</div>
<nav>
<ul class="pager">
<li><button type="button" class="btn lead btn-primary btn-lg" ng-disabled="curPage == 0" ng-click="curPage=curPage-1">Previous</button></li>
<li class="lead">
Page {(curPage + 1)} of {( numberOfPages )}
</li>
<li><button type="button" class="btn btn-primary btn-lg" ng-disabled="curPage >= numberOfPages - 1" ng-click="curPage = curPage+1">Next</button></li>
</ul>
</nav>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.10/angular.js"></script>
<script type="text/javascript" src="{{ "/js/app.js" | prepend: site.baseurl }}"></script>
<script src="https://code.angularjs.org/1.3.10/i18n/angular-locale_uk.js"></script>