Skip to content
This repository has been archived by the owner on Dec 20, 2019. It is now read-only.

Commit

Permalink
add user correctly in sigma directive snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleguido committed Feb 1, 2016
1 parent f04409d commit 12c2e1b
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 6 deletions.
14 changes: 13 additions & 1 deletion client/src/css/style.css
Expand Up @@ -1330,7 +1330,7 @@ header ul li .notification a {
}

#milkyway.explore.persons, #milkyway.explore.projection, #milkyway.explore.locations{
left: 10px;
left: 0px;
display: block
}

Expand Down Expand Up @@ -1721,13 +1721,25 @@ height: 150px;
background-repeat:no-repeat;
background-position:center;
border-radius: 50px;

}

.node.person .thumbnail-wrapper{
border: 3px solid #4dc3ba;
}

.node.resource .thumbnail-wrapper{
border: 3px solid #f6941c;
}

.node.location .thumbnail-wrapper{
border: 3px solid #7e213c;
}

.node.theme .thumbnail-wrapper{
border: 3px solid #ff9b01;
}

.node .content {
margin-left: 50px;
min-height: 70px;
Expand Down
1 change: 1 addition & 0 deletions client/src/js/directives/sigma.js
Expand Up @@ -17,6 +17,7 @@ angular.module('histograph')
templateUrl: 'templates/partials/helpers/sigma.html',

scope:{
user: '=',
graph: '=',
tips: '=',
controller: '=',
Expand Down
4 changes: 2 additions & 2 deletions client/src/js/directives/snippets.js
Expand Up @@ -16,8 +16,8 @@ angular.module('histograph')
templateUrl: 'templates/partials/helpers/snippet.html',
scope:{
center: '=',
target: '='

target: '=',
user: '='
},
link: function(scope, elem){
$log.log('::snippets ------------');
Expand Down
2 changes: 1 addition & 1 deletion client/src/js/templates.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/src/templates/partials/helpers/sigma.html
@@ -1,7 +1,7 @@
<div id="playground"></div>
<!-- <div gmasp target="target"></div> -->
<!-- <div id="tips" ng-if="tips.length > 0"><div>{{tips}}</div></div> -->
<div snippets id="sigma-snippets" target="target" center="center"></div>
<div snippets user="user" id="sigma-snippets" target="target" center="center"></div>
<div id="sigma-messenger" ng-if="message.text.length" class="animated {{message.visible? 'fadeIn': 'fadeOut'}}"><div class="inner">{{message.text}}</div></div>
<div id="commands" class="{{lookup?'lookup':''}}">
<div tooltip="view all nodes" tooltip-append-to-body="true" class="action {{lookup? 'bounceIn animated': 'hidden'}}" ng-click="toggleLookup()"><i class="fa fa-eye"></i></div>
Expand Down
2 changes: 1 addition & 1 deletion client/views/index.jade
Expand Up @@ -124,7 +124,7 @@ html
div(class='view {{currentCtrl}} {{currentState.name|humanizeState}} {{queueStatus}} viewpoint-{{viewpoint.selected.name}}', infinite-scroll='addMoreItems()', infinite-scroll-collection='relatedItems')
div(ui-view='')

div#milkyway(sigma, graph='graph', freeze='freeze', tips='headers.graph', togglemenu='toggleMenu(e, item, tag)', class='{{currentState.name|humanizeState}} {{queueStatus}} viewpoint-{{viewpoint.selected.name}}', controller='currentCtrl', setmessage='setMessage(message)', redirect='redirect(path)', queue="addToQueue(items)", filter='addFilter(key, value)')
div#milkyway(sigma, user='user', graph='graph', freeze='freeze', tips='headers.graph', togglemenu='toggleMenu(e, item, tag)', class='{{currentState.name|humanizeState}} {{queueStatus}} viewpoint-{{viewpoint.selected.name}}', controller='currentCtrl', setmessage='setMessage(message)', redirect='redirect(path)', queue="addToQueue(items)", filter='addFilter(key, value)')

div(id='timeline', timeline, class='{{currentState.name}} {{queueStatus}}', t='timeline', cxt='contextualTimeline', filters="filters")

Expand Down

0 comments on commit 12c2e1b

Please sign in to comment.