Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit f58ac3d

Browse files
committed
Completely addresses #53.
1 parent 934e228 commit f58ac3d

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎app/js/maps/system_map.js‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,6 @@ var SystemMap = {
367367
var to = SystemMap.systems.filter(function(s) { return s.system.id == gate.toSystem; })[0];
368368
jump = {type: gate.type};
369369
if (gate.type == 'wormhole') {
370-
console.log(system)
371370
// exclude nodes that are outside this region from being anchored
372371
if (from.system.regionID == system.regionID && to.system.regionID != system.regionID) {
373372
exclude.push(to.system.id);
@@ -512,7 +511,12 @@ var SystemMap = {
512511
link_a.permitted_ships = Handlebars.helpers.jump_permitted_ships(link_a.wormhole_data.mass_total);
513512
link_b.permitted_ships = Handlebars.helpers.jump_permitted_ships(link_b.wormhole_data.mass_total);
514513

515-
Data.ui.mapInfo.html( $(Data.templates.wormhole_link_info({link_a: link_a, link_b: link_b})) );
514+
var locals = {link_a: link_a, link_b: link_b};
515+
516+
if (link_a.source.system.id != Data.state.vicinity.systemId &&
517+
link_b.source.system.id != Data.state.vicinity.systemId) locals.read_only = true;
518+
519+
Data.ui.mapInfo.html( $(Data.templates.wormhole_link_info(locals)) );
516520
Data.ui.mapInfo.children('div.wormhole-link-details')
517521
.fadeIn(Data.config.uiSpeed)
518522
.delay(Data.config.alertStay * 3)

‎app/templates/system_info.hbs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
{{/if}}
6969

7070
<h4 class="external">External Resources</h4>
71-
<a class="btn" target="_blank" href="http://evemaps.dotlan.net/{{ region }}/{{ name }}#const">
71+
<a class="btn" target="_blank" href="http://evemaps.dotlan.net/map/{{ region }}/{{ name }}#const">
7272
Dotlan
7373
<i class="fa fa-external-link-square"></i>
7474
</a>

0 commit comments

Comments
 (0)