Prepare setting currentCity home template

master
Loic Blot 2015-07-18 08:14:05 +00:00
parent 8357261bfb
commit 55f806fa1a
2 changed files with 6 additions and 1 deletions

View File

@ -162,3 +162,7 @@
#city-forecast-panel td, #city-forecast-panel th { #city-forecast-panel td, #city-forecast-panel th {
padding: 10px; padding: 10px;
} }
.home-icon:hover {
cursor: pointer;
}

View File

@ -34,7 +34,8 @@
<div id="city-weather-panel"> <div id="city-weather-panel">
<div class="city-name"> <div class="city-name">
{{ currentCity.name }}, {{ currentCity.sys.country }} {{ 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>
<div class="city-current-temp">{{ currentCity.main.temp }}°C</div> <div class="city-current-temp">{{ currentCity.main.temp }}°C</div>
<div class="city-current-pressure">Pressure: {{ currentCity.main.pressure }} hpa</div> <div class="city-current-pressure">Pressure: {{ currentCity.main.pressure }} hpa</div>