Skip to content

Commit

Permalink
WIP: Add dashboard details section for dashboard owner and more (#2934)
Browse files Browse the repository at this point in the history
Show dashboard creator on dashboard page
  • Loading branch information
kocsmy authored and arikfr committed Jan 28, 2019
1 parent 37821ee commit c085964
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/app/pages/dashboards/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
<h3>
<edit-in-place class="edit-in-place" is-editable="$ctrl.layoutEditing" on-done="$ctrl.saveName" ignore-blanks="true" value="$ctrl.dashboard.name" editor="'input'"></edit-in-place>
</h3>

<img ng-src="{{$ctrl.dashboard.user.profile_image_url}}" class="profile__image_thumb--dashboard" alt="{{$ctrl.dashboard.user.name}}">

<dashboard-tags-control class="hidden-xs"
tags="$ctrl.dashboard.tags" is-draft="$ctrl.dashboard.is_draft" is-archived="$ctrl.dashboard.is_archived"
can-edit="$ctrl.isDashboardOwner" get-available-tags="$ctrl.loadTags" on-edit="$ctrl.saveTags"></dashboard-tags-control>

</div>
<div class="col-xs-4 col-sm-5 col-lg-5 text-right dashboard__control p-r-0">
<span ng-if="!$ctrl.dashboard.is_archived && !public" class="hidden-print">
Expand Down
7 changes: 7 additions & 0 deletions client/app/pages/dashboards/dashboard.less
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@
}
}

.profile__image_thumb--dashboard {
width: 16px;
height: 16px;
border-radius: 100%;
margin: 3px 5px 0 0;
}

.dashboard-header, .page-header--query {
.tags-control a {
opacity: 0;
Expand Down

0 comments on commit c085964

Please sign in to comment.