Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendy committed Apr 2, 2019
2 parents b230dd0 + 7a3841b commit 1d9fee5
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@
template: '/App_Plugins/Look/BackOffice/LookTree/Partials/Details.html',
show: true
});
};
};

$scope.isActive = function (match) {
return match === matchService.selectedMatch;
};


$scope.reload = function () {
Expand Down
30 changes: 16 additions & 14 deletions src/Our.Umbraco.Look.BackOffice/Client/Look.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,19 @@
margin: 0 0 10px 0;
clear: both;
background-color: #f3f3f5;
border-left: #f3f3f5 4px solid;
padding: 0 3px 0 5px;
}

.look-match:hover {
cursor:pointer;
background-color:white;
.look-match:hover, .look-match:focus, look-match:active {
cursor: pointer;
background-color: white;
}

.look-match.active {
cursor:default;
background-color:white;
cursor: default;
background-color: #eafffe;
border-color: #00aea2;
}

.look-match.even {
Expand All @@ -102,12 +105,15 @@
font-size: xx-small;
}


.look-match-type, .look-match-details, .look-match-checkboxes {
display: inline-block;
vertical-align: middle;
}

.look-match-type {
float: left;
position:relative;
position: relative;
margin-right: -15px;
margin-left: -5px;
}

.look-match-detached-icon {
Expand All @@ -126,17 +132,13 @@
color: lightgray;
}


.look-match-checkboxes {
float: left;
margin-right: 18px;
}

.look-match-details {
margin-left:30px;
float: left;
}


}

.look-banner {
border:solid 2px green;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div ng-controller="Look.BackOffice.DetailsController" ng-mouseleave="hideDetails()" class="look-details">
<div ng-controller="Look.BackOffice.DetailsController" class="look-details">

<h3>{{ viewData.match.name }}</h3>

Expand All @@ -11,12 +11,12 @@ <h3>{{ viewData.match.name }}</h3>
<div ng-if="viewData.match.culture"><span>Culture: </span> {{ viewData.match.culture }}</div>

<div ng-if="viewData.match.hasTags">
<hr/>
<hr />
<div ng-repeat="tagGroup in viewData.match.tagGroups">
<span class="icon icon-tags">&nbsp;</span>
<a ng-if="tagGroup.link !== null" href="{{tagGroup.link}}">{{ tagGroup.name ? tagGroup.name : '&lt;Default&gt;' }}</a>
<span ng-if="tagGroup.link === null">{{ tagGroup.name ? tagGroup.name : '&lt;Default&gt;' }}</span>

<ul>
<li ng-repeat="tag in tagGroup.tags">

Expand All @@ -29,10 +29,14 @@ <h3>{{ viewData.match.name }}</h3>
</div>

<div ng-if="viewData.match.hasLocation">
<hr/>
<hr />
<iframe width="400" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?q={{viewData.match.latitide}},{{viewData.match.longitude}}&amp;ie=UTF8&amp;&amp;output=embed"></iframe><br />
</div>

<div class="umb-dialog-footer btn-toolbar umb-btn-toolbar">
<input ng-click="hideDetails()" type="button" class="btn btn-primary" value="Close">
</div>

<!--<pre>{{ viewData | json}}</pre>-->

</div>
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<p>{{match.name.charAt(0)}}</p>
</div>

<div class="look-match" ng-class-even="'even'" ng-class-odd="'odd'" ng-click="showDetails(match)">

<div class="look-match" ng-class="{'active': isActive(match)}" ng-class-even="'even'" ng-class-odd="'odd'" ng-click="showDetails(match)">
<span class="look-match-score">{{match.score}}</span>


Expand Down

0 comments on commit 1d9fee5

Please sign in to comment.