Remove erb extension from Metamaps.Map.js
This commit is contained in:
parent
ba7bd2a7d0
commit
21e665450f
2 changed files with 16 additions and 14 deletions
|
@ -4,17 +4,18 @@
|
|||
* Metamaps.Map.js.erb
|
||||
*
|
||||
* Dependencies:
|
||||
* Metamaps.Create
|
||||
* Metamaps.Filter
|
||||
* Metamaps.JIT
|
||||
* Metamaps.Loading
|
||||
* Metamaps.Maps
|
||||
* Metamaps.Realtime
|
||||
* Metamaps.Router
|
||||
* Metamaps.Selected
|
||||
* Metamaps.SynapseCard
|
||||
* Metamaps.TopicCard
|
||||
* Metamaps.Visualize
|
||||
* - Metamaps.Create
|
||||
* - Metamaps.Erb
|
||||
* - Metamaps.Filter
|
||||
* - Metamaps.JIT
|
||||
* - Metamaps.Loading
|
||||
* - Metamaps.Maps
|
||||
* - Metamaps.Realtime
|
||||
* - Metamaps.Router
|
||||
* - Metamaps.Selected
|
||||
* - Metamaps.SynapseCard
|
||||
* - Metamaps.TopicCard
|
||||
* - Metamaps.Visualize
|
||||
* - Metamaps.Active
|
||||
* - Metamaps.Backbone
|
||||
* - Metamaps.GlobalUI
|
||||
|
@ -490,7 +491,7 @@ Metamaps.Map.InfoBox = {
|
|||
obj['contributor_count'] = relevantPeople.length
|
||||
obj['contributors_class'] = relevantPeople.length > 1 ? 'multiple' : ''
|
||||
obj['contributors_class'] += relevantPeople.length === 2 ? ' mTwo' : ''
|
||||
obj['contributor_image'] = relevantPeople.length > 0 ? relevantPeople.models[0].get('image') : "<%= asset_path('user.png') %>"
|
||||
obj['contributor_image'] = relevantPeople.length > 0 ? relevantPeople.models[0].get('image') : Metamaps.Erb['user.png'] %>"
|
||||
obj['contributor_list'] = self.createContributorList()
|
||||
|
||||
obj['user_name'] = isCreator ? 'You' : map.get('user_name')
|
||||
|
@ -580,7 +581,7 @@ Metamaps.Map.InfoBox = {
|
|||
value: "No results",
|
||||
label: "No results",
|
||||
rtype: "noresult",
|
||||
profile: "<%= asset_path('user.png') %>",
|
||||
profile: Metamaps.Erb['user.png'],
|
||||
});
|
||||
},
|
||||
suggestion: function(s) {
|
||||
|
@ -680,7 +681,7 @@ Metamaps.Map.InfoBox = {
|
|||
if (relevantPeople.length === 2) contributors_class = 'multiple mTwo'
|
||||
else if (relevantPeople.length > 2) contributors_class = 'multiple'
|
||||
|
||||
var contributors_image = "<%= asset_path('user.png') %>"
|
||||
var contributors_image = Metamaps.Erb['user.png']
|
||||
if (relevantPeople.length > 0) {
|
||||
// get the first contributor and use their image
|
||||
contributors_image = relevantPeople.models[0].get('image')
|
|
@ -23,6 +23,7 @@ Metamaps.VERSION = '<%= METAMAPS_VERSION %>'
|
|||
Metamaps.Erb = {}
|
||||
Metamaps.Erb['REALTIME_SERVER'] = '<%= ENV['REALTIME_SERVER'] %>'
|
||||
Metamaps.Erb['junto_spinner_darkgrey.gif'] = '<%= asset_path('junto_spinner_darkgrey.gif') %>'
|
||||
Metamaps.Erb['user.png'] = '<%= asset_path('user.png') %>'
|
||||
|
||||
Metamaps.Settings = {
|
||||
embed: false, // indicates that the app is on a page that is optimized for embedding in iFrames on other web pages
|
||||
|
|
Loading…
Add table
Reference in a new issue