|
1 | | -<div class="container" layout="column" layout-align="space-between stretch" flex> |
| 1 | +<div class="container" flex |
| 2 | + layout="column" layout-align="space-between stretch" |
| 3 | + ng-if="!$ctrl.country"> |
| 4 | + <md-content layout="column" layout-align="start center" flex> |
| 5 | + <div class="list" layout="column" layout-align="start stretch"> |
| 6 | + <div class="game__title"> |
| 7 | + <h3 class="md-headline">Matching Wikidata entry with Wikimedia Commons category</h3> |
| 8 | + <h4 class="md-subhead muted">Monumental Wikidata Games</h4> |
| 9 | + </div> |
| 10 | + <div layout="row" layout-align="center center"> |
| 11 | + <md-button class="md-raised" ui-sref="main.game.category({country: '142'})" flex>France</md-button> |
| 12 | + <md-button class="md-raised" ui-sref="main.game.category({country: '183'})" flex>Germany</md-button> |
| 13 | + <md-button class="md-raised" ui-sref="main.game.category({country: '145'})" flex>Great Britain</md-button> |
| 14 | + <md-button class="md-raised" ui-sref="main.game.category({country: '36'})" flex>Poland</md-button> |
| 15 | + <md-button class="md-raised" ui-sref="main.game.category({country: '30'})" flex>United States</md-button> |
| 16 | + </div> |
| 17 | + </div> |
| 18 | + </md-content> |
| 19 | +</div> |
| 20 | +<div class="container" flex |
| 21 | + layout="column" layout-align="space-between stretch" |
| 22 | + ng-if="$ctrl.country"> |
| 23 | + <div class="game__reminder" |
| 24 | + layout="column" layout-align="start stretch" |
| 25 | + ng-if="$ctrl.isReminderShown"> |
| 26 | + <span>Please choose the category that is <strong>specifically</strong> for photos of the monument. If the category doesn't exist, you can skip it for now.</span> |
| 27 | + <md-button ng-if="$ctrl.isReminderShown !== 'check'" ng-click="$ctrl.isReminderShown = 'check'">got it</md-button> |
| 28 | + <md-button ng-if="$ctrl.isReminderShown === 'check'" ng-click="$ctrl.isReminderShown = false">you sure?</md-button> |
| 29 | + </div> |
2 | 30 | <div layout="column" layout-align="start stretch" flex="none" ng-if="!$ctrl.error"> |
3 | 31 | <div class="game__subheader" layout="row" layout-align="center center"> |
4 | 32 | <div class="list" layout="row" layout-align="start center"> |
|
14 | 42 | </md-input-container> |
15 | 43 | <span>with image but without Wikimedia Commons category.</span> |
16 | 44 | </span> |
17 | | - <small class="muted">Click plus next to category sugestion to add it.</small> |
| 45 | + <p class="game__instructions">The goal of the game is to connect each monument on Wikidata with a category on Wikimedia Commons. For each monument (on the left), please choose the category (on the right) that is <strong>specifically for photos of the monument</strong>. If the category doesn't exist, you can skip it for now.</p> |
| 46 | + <p class="game__instructions">Click the <md-icon>add_circle_outline</md-icon> button to add the category to a monument. You can click on the name of the category to view it on Commons.</p> |
18 | 47 | </div> |
19 | 48 | <div flex></div> |
20 | | - <md-button ng-if="!$ctrl.loading"> |
21 | | - <md-tooltip md-direction="bottom">This is cached value. It means it is not updated real-time.</md-tooltip> |
22 | | - <span>{{$ctrl.total}} results</span> |
23 | | - </md-button> |
24 | | - <md-button ng-click="$ctrl.reload()"> |
25 | | - <md-icon>forward</md-icon> next entries |
26 | | - </md-button> |
| 49 | + <div layout="column" layout-align="center stretch"> |
| 50 | + <md-button ng-if="!$ctrl.loading"> |
| 51 | + <md-tooltip md-direction="bottom">This is cached value. It means it is not updated real-time.</md-tooltip> |
| 52 | + <span>{{$ctrl.total}} results</span> |
| 53 | + </md-button> |
| 54 | + </div> |
27 | 55 | </div> |
28 | 56 | </div> |
29 | 57 | </div> |
30 | 58 | <md-content layout="column" layout-align="start center" flex> |
| 59 | + <div class="list" flex |
| 60 | + layout="row" layout-align="end center" |
| 61 | + ng-if="!$ctrl.error && !$ctrl.loading"> |
| 62 | + <md-button flex ng-click="$ctrl.reload()"> |
| 63 | + <md-icon>forward</md-icon> next entries |
| 64 | + </md-button> |
| 65 | + </div> |
31 | 66 | <div class="list" flex |
32 | 67 | layout="column" layout-align="start stretch" |
33 | 68 | ng-if="!$ctrl.error && !$ctrl.loading"> |
|
49 | 84 | <span><span>{{ ::item.place }}</span><span ng-if="item.place && item.admin"> · </span><span>{{ ::item.admin }}</span></span> |
50 | 85 | </p> |
51 | 86 | <div flex layout="column" layout-align="start stretch"> |
| 87 | + <p class="list__category muted" ng-if="!item.categories.length"><span class="muted">No suggestions</span></p> |
52 | 88 | <p class="list__category" |
53 | 89 | layout="row" layout-align="start center" |
54 | 90 | ng-repeat="category in item.categories" |
55 | 91 | ng-class="{ 'list__category--underlined' : !$last }"> |
56 | 92 | <md-button class="md-primary" aria-label="Add category" |
57 | | - ng-click="$ctrl.saveCategory(item, category)" |
58 | | - ng-if="item.success !== category" |
| 93 | + ng-click="$ctrl.saveCategory(item, category.name)" |
| 94 | + ng-if="item.success !== category.name" |
59 | 95 | ng-disabled="item.loading || item.success"> |
60 | | - <md-icon ng-if="item.loading !== category && item.success !== category">add_circle_outline</md-icon> |
61 | | - <md-progress-circular md-mode="indeterminate" md-diameter="24px" ng-if="item.loading === category"></md-progress-circular> |
62 | | - <md-icon ng-if="item.success === category">check_circle</md-icon> |
| 96 | + <md-icon ng-if="item.loading !== category.name && item.success !== category.name">add_circle_outline</md-icon> |
| 97 | + <md-progress-circular md-mode="indeterminate" md-diameter="24px" ng-if="item.loading === category.name"></md-progress-circular> |
| 98 | + <md-icon ng-if="item.success === category.name">check_circle</md-icon> |
63 | 99 | </md-button> |
64 | 100 | <md-button class="md-primary" aria-label="Category added" |
65 | 101 | ng-href="//wikidata.org/w/index.php?title={{ ::item.name.value_id }}&diff=last" target="_blank" |
66 | | - ng-if="item.success === category"> |
| 102 | + ng-if="item.success === category.name"> |
67 | 103 | <md-tooltip md-direction="bottom">Click to see diff or revert edit</md-tooltip> |
68 | 104 | <md-icon>check_circle</md-icon> |
69 | 105 | </md-button> |
70 | 106 | <span> |
71 | | - <a ng-href="//commons.wikimedia.org/wiki/Category:{{ ::category }}" target="_blank">{{ ::category }}</a> |
| 107 | + <a ng-href="//commons.wikimedia.org/wiki/Category:{{ ::category.name }}" target="_blank">{{ ::category.name }}</a> |
72 | 108 | </span> |
73 | 109 | </p> |
74 | 110 | </div> |
|
0 commit comments