<query-link hrefValue="/queries/{{query1.id}}#{{visualization1.id
}}"></query-link>
<query-link hrefValue="/queries/{{query2.id}}#{{visualization2.id
}}"></query-link>

is that what you meant?


On Wed, Mar 26, 2014 at 1:32 PM, Arik Fraimovich
<notifications@github.com>wrote:

> In rd_ui/app/scripts/directives/query_directives.js:
>
> > +  function queryLink() {
> > +    return {
> > +      restrict: 'E',
> > +      scope: {
> > +        'query': '=?',
> > +        'visualization': '=?'
> > +      },
> > +      template: '<a>{{query.name
> }}</a>',
> > +      link: function(scope, element) {
> > +        scope.query = scope.query || scope.$parent.query;
> > +
> > +        var link = '/queries/' + scope.query.id;
> > +        if (scope.visualization) {
> > +          link += '#' + scope.visualization.id;
> > +        }
> > +        element.find('a').attr('href', link);
>
> Why will it be written in more than one place this way?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/EverythingMe/redash/pull/154/files#r10972230>
> .
>



-- 
 <http://everything.me/>
Amir Nissim
Front End Developer, EverythingMe <http://everything.me/>
 amirn@everything.me <amirn@everything.me>  +972 52 6342974