Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

Commit

Permalink
Removes ShowMapButton conditional for template avdeling do to weird bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zrrrzzt committed Apr 10, 2014
1 parent e99d8f0 commit 83efd68
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 4 additions & 6 deletions index.html
Expand Up @@ -10,7 +10,7 @@
</head>
<body>

<script type="text/x-handlebars">
<script type="text/x-handlebars" id="application">
<div class="header">
<ul class="nav nav-pills pull-right">
{{#link-to 'index' tagName='li'}}
Expand Down Expand Up @@ -131,11 +131,9 @@ <h1>{{departmentName}}</h1>
{{#link-to 'avdeling.ansatte' tagName='li'}}
<a {bind-attr href="view.href"}>Vis ansatte</a>
{{/link-to}}
{{#unless ShowMapButton}}
{{#link-to 'avdeling.kart' tagName='li'}}
<a {bind-attr href="view.href"}>Vis kart</a>
{{/link-to}}
{{/unless}}
{{#link-to 'avdeling.kart' tagName='li'}}
<a {bind-attr href="view.href"}>Vis kart</a>
{{/link-to}}
</ul>
{{outlet}}
</script>
Expand Down
3 changes: 2 additions & 1 deletion js/app.js
Expand Up @@ -40,6 +40,8 @@ App.SearchRoute = Ember.Route.extend({
})

App.AvdelingerController = Ember.ArrayController.extend({
sortProperties: ['departmentName'],
sortAscending: true,
itemController: 'avdeling'
});

Expand All @@ -56,7 +58,6 @@ App.AvdelingerRoute = Ember.Route.extend({
});

App.AvdelingController = Ember.ObjectController.extend({
ShowMapButton: false,
realUrl:'',
realMail:'',
formattedUrl: function(){
Expand Down

0 comments on commit 83efd68

Please sign in to comment.