-
Notifications
You must be signed in to change notification settings - Fork 6
/
fitbit-profile-tab.html
38 lines (36 loc) · 2.76 KB
/
fitbit-profile-tab.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
<!-------------------------------------------------------------------------->
<!-- Augeo.io is a web application that uses Natural Language Processing -->
<!-- to classify a user's internet activity into different 'skills'. -->
<!-- Copyright (C) 2016 Brian Redd -->
<!-- -->
<!-- This program is free software: you can redistribute it and/or modify -->
<!-- it under the terms of the GNU General Public License as published by -->
<!-- the Free Software Foundation, either version 3 of the License, or -->
<!-- (at your option) any later version. -->
<!-- -->
<!-- This program is distributed in the hope that it will be useful, -->
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
<!-- GNU General Public License for more details. -->
<!-- -->
<!-- You should have received a copy of the GNU General Public License -->
<!-- along with this program. If not, see <http://www.gnu.org/licenses/>. -->
<!-------------------------------------------------------------------------->
<div class="profile-img-container" ng-if="user.fitbit">
<img class="profile-img" src="{{user.fitbit.profileImageUrl}}"/>
</div>
<!-- Authenticate with Fitbit -->
<div class="profile-auth-container" ng-if="!user.interfaces[interfaceIndex].hasAuthentication && isGlobalUser">
<div class="profile-auth-inner-container">
<p class="standard-text text-primary text-align-center profile-auth-text">Authenticate with Fitbit to start tracking your experience.</p>
<div class="horizontal-center">
<button type="button" class="btn btn-primary small-text" data-dismiss="modal" ng-click="submitFitbitAuthentication()">Authenticate</button>
</div>
</div>
</div>
<!-- Use Fitbit profile image as Augeo Image -->
<div class="checkbox horizontal-center" ng-if="user.fitbit && isGlobalUser">
<label><input type="checkbox" ng-model="user.interfaces[interfaceIndex].usingProfileImage" ng-change="setProfileImage('Fitbit')">Use as Augeo profile image</label>
</div>
<!-- Fitbit name -->
<div ng-if="user.fitbit" class="standard-text text-primary profile-attr horizontal-center"><a class="profile-interface-screen-name normal-text clickable" href="https://www.fitbit.com/user/{{user.fitbit.fitbitId}}" target="_blank">{{user.fitbit.name}}</a></div>