Skip to content

Commit

Permalink
Analytics button in dashboard (#391)
Browse files Browse the repository at this point in the history
* Analytics button
* Updated config file
  • Loading branch information
bsekachev authored and nmanovic committed Apr 11, 2019
1 parent ac0a5b3 commit 2d99d31
Show file tree
Hide file tree
Showing 6 changed files with 157 additions and 169 deletions.
2 changes: 1 addition & 1 deletion cvat/apps/dashboard/templates/dashboard/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<div id="content">
<div style="width: 100%; display: flex;">
<div style="width: 50%; display: flex;"> </div>
<div style="width: 70%; display: flex;">
<div style="width: 100%; display: flex;">
<div id="dashboardManageButtons" style="display: flex;">
<button id="dashboardCreateTaskButton" class="regular h1" style="padding: 7px;"> Create New Task </button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

window.addEventListener('DOMContentLoaded', () => {
$(`<button class="regular h1" style="margin-left: 5px;"> User Guide</button>`).on('click', () => {
$('<button class="regular h1" style="margin-left: 5px;"> User Guide </button>').on('click', () => {
window.open('/documentation/user_guide.html');
}).appendTo('#dashboardManageButtons');
});
Loading

0 comments on commit 2d99d31

Please sign in to comment.