Skip to content

Commit

Permalink
Prepare setting currentCity home template
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzhul committed Jul 18, 2015
1 parent 8357261 commit 55f806f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,7 @@
#city-forecast-panel td, #city-forecast-panel th {
padding: 10px;
}

.home-icon:hover {
cursor: pointer;
}
3 changes: 2 additions & 1 deletion templates/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
<div id="city-weather-panel">
<div class="city-name">
{{ currentCity.name }}, {{ currentCity.sys.country }}
<img class="home-icon" src="{{ owncloudAppImgPath }}/img/home-{{ selectedCityId == homeCity ? '' : 'no' }}pick.png" />
<img ng-show="selectedCityId == homeCity" src="{{ owncloudAppImgPath }}/img/home-pick.png" />
<img class="home-icon" ng-click="setHome(selectedCityId);" ng-show="selectedCityId != homeCity" src="{{ owncloudAppImgPath }}/img/home-nopick.png" />
</div>
<div class="city-current-temp">{{ currentCity.main.temp }}°C</div>
<div class="city-current-pressure">Pressure: {{ currentCity.main.pressure }} hpa</div>
Expand Down

0 comments on commit 55f806f

Please sign in to comment.