From 9655014041d096c2092dd9d3a05c4fd6213207ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 7 May 2015 13:10:04 +0200 Subject: [PATCH] More polish and refinements to dashboard links --- .../features/dashboard/partials/settings.html | 8 +- public/app/features/dashlinks/editor.html | 138 +++++++++--------- public/app/features/dashlinks/module.js | 5 +- 3 files changed, 78 insertions(+), 73 deletions(-) diff --git a/public/app/features/dashboard/partials/settings.html b/public/app/features/dashboard/partials/settings.html index 79c1e44981f..92b5d0aba9c 100644 --- a/public/app/features/dashboard/partials/settings.html +++ b/public/app/features/dashboard/partials/settings.html @@ -90,9 +90,11 @@
  • -
  • - - +
  • + +
  • +
  • +
  • diff --git a/public/app/features/dashlinks/editor.html b/public/app/features/dashlinks/editor.html index de73ce8d3e9..9339590823e 100644 --- a/public/app/features/dashlinks/editor.html +++ b/public/app/features/dashlinks/editor.html @@ -1,80 +1,80 @@ -
    -
    -
    Links and Dash Navigation
    +
    +
    Links and Dash Navigation
    -
    -
      -
    • - -
    • +
      +
      +
        +
      • + + +
      • +
      • + +
      • +
      -
    • Type
    • -
    • - -
    • +
        +
      • + +
      • -
      • With tag
      • -
      • - -
      • +
      • Type
      • +
      • + +
      • -
      • Url
      • -
      • - -
      • +
      • With tag
      • +
      • + +
      • -
      • - - -
      • -
      • - -
      • -
      -
      -
      -
      -
      -
        -
      • - -
      • -
      • Title
      • -
      • - -
      • -
      • Tooltip
      • -
      • - -
      • - -
      • Icon
      • -
      • - -
      • - -
      -
      -
      -
      - - - - - - - - - - - - - - - +
    • Url
    • +
    • + +
    • +
    • + +
    • +
    +
    +
    +
    +
      +
    • + +
    • +
    • Title
    • +
    • + +
    • +
    • Tooltip
    • +
    • + +
    • +
    • Icon
    • +
    • + +
    • +
    +
    + + + + + + + + + + + + + + +

    diff --git a/public/app/features/dashlinks/module.js b/public/app/features/dashlinks/module.js index c446ff2c01a..ff27d288f46 100644 --- a/public/app/features/dashlinks/module.js +++ b/public/app/features/dashlinks/module.js @@ -62,6 +62,7 @@ function (angular, _) { // tooltip elem.find('a').tooltip({ title: scope.link.tooltip, html: true, container: 'body' }); icon.attr('class', 'fa fa-fw ' + scope.link.icon); + anchor.attr('target', scope.link.target); update(); scope.$on('refresh', update); @@ -94,7 +95,9 @@ function (angular, _) { return $q.when([{ url: linkDef.url, title: linkDef.title, - icon: iconMap[linkDef.icon] + icon: iconMap[linkDef.icon], + tooltip: linkDef.tooltip, + target: linkDef.targetBlank ? "_blank" : "", }]); }