You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

142 lines
7.4 KiB

  1. <nav>
  2. <div class="nav-wrapper blue-grey darken-4">
  3. <a href="#" class="brand-logo">Open Work Time <small>- v0.1</small></a>
  4. <ul id="nav-mobile" class="right">
  5. <li>
  6. <a ng-click="openCode()" target="_blank">
  7. <i class="large material-icons" title="Visit code">code</i>
  8. </a>
  9. </li>
  10. <li>
  11. <a ng-click="deleteStorage()">
  12. <i class="large material-icons" title="Delete storage">info_outline</i>
  13. </a>
  14. </li>
  15. <li>
  16. <a ng-click="onBtnLogout()" title="Logout">
  17. <i class="large material-icons">power_settings_new</i>
  18. </a>
  19. </li>
  20. </ul>
  21. </div>
  22. </nav>
  23. <div class="row">
  24. <div class="col s12 m4 l2 blue-grey darken-3 white-text">
  25. <!-- Grey navigation panel -->
  26. <br>
  27. <div class="row">
  28. <div class="col s4">
  29. <img ng-src="img/avatars/{{user.avatar}}.png" alt="" class="circle responsive-img blue-grey lighten-5">
  30. </div>
  31. <div class="col s8">
  32. <h5>{{user.username}}</h5>
  33. </div>
  34. </div>
  35. <p>
  36. {{user.description}}
  37. </p>
  38. <p>
  39. <a ng-href="http://{{user.github}}" target="_blank">{{user.github}}</a>
  40. </p>
  41. <p>
  42. <a ng-href="http://{{user.web}}" target="_blank">{{user.web}}</a>
  43. </p>
  44. <p>
  45. Total worked time: {{user.totalWorkedTime | secondsToDateTime | date:'HH:mm'}}h
  46. </p>
  47. <br/><br/><br/><br/><br/><br/><br/><br/>
  48. <br/><br/><br/><br/><br/><br/><br/><br/>
  49. <br/><br/><br/><br/><br/><br/><br/><br/>
  50. <br/><br/><br/><br/><br/><br/><br/><br/>
  51. </div>
  52. <div class="col s12 m8 l10">
  53. <div class="row">
  54. <div class="card white col s12 m12 l5">
  55. <div class="card-content">
  56. <span class="card-title">Projects</span>
  57. <div class="collection">
  58. <a href="#!" ng-click="projectSelect($index)" ng-repeat="project in projects" class="collection-item avatar white">
  59. <div class="right">
  60. <div class="waves-effect waves-light btn-floating indigo lighten-2" ng-click="editProject($index)">
  61. <i class="material-icons"><img src="img/edit.png" class="o_trash_icon" /></i>
  62. </div>
  63. <div class="waves-effect waves-light btn-floating deep-orange lighten-2" ng-click="removeProject($index)">
  64. <i class="material-icons"><img src="img/trash.png" class="o_trash_icon" /></i>
  65. </div>
  66. </div>
  67. <img ng-src="img/{{project.icon}}.png" class="circle"/>
  68. <span class="title">{{project.title}}</span>
  69. <p class="grey-text">{{project.totaltime | secondsToDateTime | date:'HH:mm:ss'}}</p>
  70. </a>
  71. </div>
  72. </div>
  73. <div class="card-action" ng-show="!editingProject">
  74. <div class="input-field col s6">
  75. <input ng-model="newproject.title" id="newprojectname" type="text" class="validate">
  76. <label for="newprojectname">New project name</label>
  77. </div>
  78. <div class="input-field col s6">
  79. <input ng-model="newproject.icon" id="icon" type="text" class="validate">
  80. <label for="icon">icon</label>
  81. </div>
  82. <a ng-click="addNewProject()" class="waves-effect waves-light btn blue-grey lighten-1 right">Add new project</a>
  83. </div>
  84. <div class="card-action" ng-show="editingProject">
  85. <div class="input-field col s6">
  86. <input ng-model="editingProject.title" id="newprojectname" value=" " type="text" class="validate">
  87. <label for="newprojectname">New project name</label>
  88. </div>
  89. <div class="input-field col s6">
  90. <input ng-model="editingProject.icon" id="icon" value=" " type="text" class="validate">
  91. <label for="icon">icon</label>
  92. </div>
  93. <a ng-click="cancelEditProject()" class="waves-effect waves-light btn red lighten-2">Cancel</a>
  94. <a ng-click="updateProject()" class="waves-effect waves-light btn blue lighten-2 right">Update project</a>
  95. </div>
  96. </div>
  97. <div ng-show="currentproject.title" class="card white col s12 m12 l7">
  98. <div class="card-content">
  99. <span class="card-title">
  100. <img ng-src="img/{{currentproject.icon}}.png" class="o_project_title_img"/>
  101. {{currentproject.title}}
  102. </span>
  103. <p>
  104. Total time: {{currentproject.totaltime | secondsToDateTime | date:'HH:mm:ss'}}
  105. </p>
  106. <p>
  107. Current strike time: <b>{{currentStrike | secondsToDateTime | date:'HH:mm:ss'}}</b>
  108. </p>
  109. </div>
  110. <div class="card-action">
  111. <a ng-click="btnWork()" ng-show="!working" class="waves-effect waves-light btn green lighten-2">Work!</a>
  112. <a ng-click="btnStop()" ng-show="working" class="waves-effect waves-light btn red lighten-2">Stop!</a>
  113. <!--<a class="waves-effect waves-light btn deep-orange lighten-2">Stop working!</a>-->
  114. </div>
  115. <div class="divider"></div>
  116. <div class="card-content">
  117. <!-- here the charts -->
  118. <canvas id="bar" class="chart chart-bar"
  119. chart-data="currentproject.chart.data" chart-labels="currentproject.chart.labels" chart-series="currentproject.chart.series">
  120. </canvas>
  121. </div>
  122. </div>
  123. <div ng-show="!currentproject.title" class="card white col s12 m12 l7" style="height: 200px;">
  124. <span class="card-title">
  125. Select a project
  126. </span>
  127. </div>
  128. </div><!-- </row -->
  129. </div>
  130. </div>