mirror of https://github.com/akveo/blur-admin
diplaying a hardcoded picture
parent
fcee1ec7c8
commit
ca782c0dd0
|
@ -34,7 +34,8 @@
|
|||
<div class="feed-messages-container" track-width="smallContainerWidth" min-width="360">
|
||||
<div class="feed-message" ng-repeat="m in vm.listMembers">
|
||||
<div class="message-icon">
|
||||
<img class="photo-icon" ng-src="{{m.name.split(' ')[0] | profilePicture}}">
|
||||
<!--<img class="photo-icon" ng-src="{{m.name.split(' ')[0] | profilePicture}}">-->
|
||||
<img class="photo-icon" ng-src="{{'undefined' | profilePicture}}">
|
||||
</div>
|
||||
<div class="text-block text-message">
|
||||
<div class="message-header">
|
||||
|
@ -64,7 +65,8 @@
|
|||
<div class="feed-messages-container" track-width="smallContainerWidth" min-width="360">
|
||||
<div class="feed-message" ng-repeat="m in vm.searchResult">
|
||||
<div class="message-icon">
|
||||
<img class="photo-icon" ng-src="{{m.name.split(' ')[0] | profilePicture}}">
|
||||
<!--<img class="photo-icon" ng-src="{{m.name.split(' ')[0] | profilePicture}}">-->
|
||||
<img class="photo-icon" ng-src="{{'undefined' | profilePicture}}">
|
||||
</div>
|
||||
<div class="text-block text-message">
|
||||
<div class="message-header">
|
||||
|
|
|
@ -9,26 +9,26 @@
|
|||
.controller('composeBoxCtrl', composeBoxCtrl);
|
||||
|
||||
/** @ngInject */
|
||||
function composeBoxCtrl(member, membersList,MemberService,fileReader, $filter) {
|
||||
function composeBoxCtrl($scope ,member, membersList,MemberService,fileReader, $filter) {
|
||||
var vm = this;
|
||||
vm.member = member;
|
||||
//vm.actualIndex = actualIndex;
|
||||
vm.picture = (member.pic && member.pic != "") ? $filter('profilePicture')(member.name.split(' ')[0]) : $filter('appImage')('theme/no-photo.png');
|
||||
vm.Labels = membersList.getTabs();
|
||||
|
||||
vm.removePicture = function () {
|
||||
$scope.removePicture = function () {
|
||||
vm.picture = $filter('appImage')('theme/no-photo.png');
|
||||
vm.noPicture = true;
|
||||
};
|
||||
|
||||
vm.uploadPicture = function () {
|
||||
$scope.uploadPicture = function () {
|
||||
var fileInput = document.getElementById('uploadFile');
|
||||
fileInput.click();
|
||||
|
||||
};
|
||||
|
||||
vm.getFile = function () {
|
||||
fileReader.readAsDataUrl(vm.file, vm)
|
||||
$scope.getFile = function () {
|
||||
fileReader.readAsDataUrl($scope.file, $scope)
|
||||
.then(function (result) {
|
||||
vm.picture = result;
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="message-container" ng-class="{'expanded': tabCtrl.navigationCollapsed}">
|
||||
<div class="message">
|
||||
<div class="row">
|
||||
<div class="row" style="height: 75px;">
|
||||
<div class="toggle-navigation-container detail-page">
|
||||
<a href class="collapse-navigation-link ion-navicon"
|
||||
ng-click="tabCtrl.navigationCollapsed=!tabCtrl.navigationCollapsed"></a>
|
||||
|
@ -11,8 +11,8 @@
|
|||
</div>
|
||||
<div class="person-info row">
|
||||
<div class="col-lg-4 col-md-12 no-padding">
|
||||
<img ng-src="{{detailCtrl.member.name.split(' ')[0] | profilePicture}}" class="human-picture">
|
||||
|
||||
<!--<img ng-src="{{detailCtrl.member.name.split(' ')[0] | profilePicture}}" class="human-picture">-->
|
||||
<img ng-src="{{'undefined' | profilePicture}}" class="human-picture">
|
||||
<div class="name">
|
||||
<h2 class="name-h">{{detailCtrl.member.name.split(' ')[0]}}</h2>
|
||||
|
||||
|
|
|
@ -34,7 +34,10 @@
|
|||
</label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="photo-td" ui-sref="teams.members.detail({id: m.id, label: listCtrl.label})"><img ng-src="{{m.name.split(' ')[0] | profilePicture}}" class="little-human-picture"></td>
|
||||
<td class="photo-td" ui-sref="teams.members.detail({id: m.id, label: listCtrl.label})">
|
||||
<!--<img ng-src="{{m.name.split(' ')[0] | profilePicture}}" class="little-human-picture">-->
|
||||
<img ng-src="{{'undefined' | profilePicture}}" class="little-human-picture">
|
||||
</td>
|
||||
<td ui-sref="teams.members.detail({id: m.id, label: listCtrl.label})">
|
||||
<div class="name-container">
|
||||
<div><span class="name">{{m.name}}</span></div>
|
||||
|
|
Loading…
Reference in New Issue