diff --git a/public/index.html b/public/index.html
index 851d5781..86d8a5aa 100644
--- a/public/index.html
+++ b/public/index.html
@@ -75,7 +75,8 @@
id: 10,
name: 'Connor',
email: 'co@co.com',
- admin: false
+ admin: false,
+ image: 'https://metamaps-live.s3.amazonaws.com/users/images/555/629/996/sixtyfour/11835c3.png?1417298429'
}
}
}
diff --git a/views/doorkeeper/applications/_delete_form.html.erb b/views/doorkeeper/applications/_delete_form.html.erb
index 69912ec3..adcd5df6 100644
--- a/views/doorkeeper/applications/_delete_form.html.erb
+++ b/views/doorkeeper/applications/_delete_form.html.erb
@@ -1,5 +1,5 @@
-<%- submit_btn_css ||= 'button red-button' %>
-<%= form_tag oauth_application_path(application) do %>
+{- submit_btn_css ||= 'button red-button' }
+{ form_tag oauth_application_path(application) do }
- <%= submit_tag t('doorkeeper.applications.buttons.destroy'), onclick: "return confirm('#{ t('doorkeeper.applications.confirmations.destroy') }')", class: submit_btn_css %>
-<% end %>
+ { submit_tag t('doorkeeper.applications.buttons.destroy'), onclick: "return confirm('#{ t('doorkeeper.applications.confirmations.destroy') }')", class: submit_btn_css }
+{ end }
diff --git a/views/doorkeeper/applications/_form.html.erb b/views/doorkeeper/applications/_form.html.erb
index 7810805d..7a6654bd 100644
--- a/views/doorkeeper/applications/_form.html.erb
+++ b/views/doorkeeper/applications/_form.html.erb
@@ -1,36 +1,36 @@
-<%= form_for application, url: doorkeeper_submit_path(application), html: {class: 'form-horizontal', role: 'form'} do |f| %>
- <% if application.errors.any? %>
-
<%= t('doorkeeper.applications.form.error') %>
- <% end %>
+{ form_for application, url: doorkeeper_submit_path(application), html: {class: 'form-horizontal', role: 'form'} do |f| }
+ { if application.errors.any? }
+ { t('doorkeeper.applications.form.error') }
+ { end }
- <%= content_tag :div, class: "form-group#{' has-error' if application.errors[:name].present?}" do %>
- <%= f.label :name, class: 'col-sm-2 control-label' %>
+ { content_tag :div, class: "form-group#{' has-error' if application.errors[:name].present?}" do }
+ { f.label :name, class: 'col-sm-2 control-label' }
- <%= f.text_field :name, class: 'form-control' %>
- <%= doorkeeper_errors_for application, :name %>
+ { f.text_field :name, class: 'form-control' }
+ { doorkeeper_errors_for application, :name }
- <% end %>
+ { end }
- <%= content_tag :div, class: "form-group#{' has-error' if application.errors[:redirect_uri].present?}" do %>
- <%= f.label :redirect_uri, class: 'col-sm-2 control-label' %>
+ { content_tag :div, class: "form-group#{' has-error' if application.errors[:redirect_uri].present?}" do }
+ { f.label :redirect_uri, class: 'col-sm-2 control-label' }
- <%= f.text_area :redirect_uri, class: 'form-control' %>
- <%= doorkeeper_errors_for application, :redirect_uri %>
+ { f.text_area :redirect_uri, class: 'form-control' }
+ { doorkeeper_errors_for application, :redirect_uri }
- <%= t('doorkeeper.applications.help.redirect_uri') %>.
+ { t('doorkeeper.applications.help.redirect_uri') }.
- <% if Doorkeeper.configuration.native_redirect_uri %>
+ { if Doorkeeper.configuration.native_redirect_uri }
- <%= raw t('doorkeeper.applications.help.native_redirect_uri', native_redirect_uri: "#{ Doorkeeper.configuration.native_redirect_uri }
") %>
+ { raw t('doorkeeper.applications.help.native_redirect_uri', native_redirect_uri: "#{ Doorkeeper.configuration.native_redirect_uri }
") }
- <% end %>
+ { end }
- <% end %>
+ { end }
-<% end %>
+{ end }
diff --git a/views/doorkeeper/applications/edit.html.erb b/views/doorkeeper/applications/edit.html.erb
index 8f92c3a3..0830d612 100644
--- a/views/doorkeeper/applications/edit.html.erb
+++ b/views/doorkeeper/applications/edit.html.erb
@@ -1,10 +1,10 @@
- <%= render 'form', application: @application %>
+ { render 'form', application: @application }
-<%= render 'script' %>
+{ render 'script' }
diff --git a/views/doorkeeper/applications/index.html.erb b/views/doorkeeper/applications/index.html.erb
index 25a94572..33e96aee 100644
--- a/views/doorkeeper/applications/index.html.erb
+++ b/views/doorkeeper/applications/index.html.erb
@@ -1,28 +1,28 @@
- <%= t('.name') %>
- <%= t('.callback_url') %>
+ { t('.name') }
+ { t('.callback_url') }
- <% @applications.each do |application| %>
-
- <%= link_to application.name, oauth_application_path(application) %>
- <%= application.redirect_uri %>
- <%= render 'delete_form', application: application %>
+ { @applications.each do |application| }
+
+ { link_to application.name, oauth_application_path(application) }
+ { application.redirect_uri }
+ { render 'delete_form', application: application }
- <% end %>
+ { end }
-<%= link_to t('.new'), new_oauth_application_path, class: 'button link-button' %>
+{ link_to t('.new'), new_oauth_application_path, class: 'button link-button' }
-<%= render 'script' %>
+{ render 'script' }
diff --git a/views/doorkeeper/applications/new.html.erb b/views/doorkeeper/applications/new.html.erb
index 698dc25e..75c6f983 100644
--- a/views/doorkeeper/applications/new.html.erb
+++ b/views/doorkeeper/applications/new.html.erb
@@ -1,11 +1,11 @@
-<%= link_to t('doorkeeper.applications.buttons.back'), oauth_applications_path(), class: 'button link-button button-margin' %>
+{ link_to t('doorkeeper.applications.buttons.back'), oauth_applications_path(), class: 'button link-button button-margin' }
-<%= render 'form', application: @application %>
+{ render 'form', application: @application }
-<%= render 'script' %>
+{ render 'script' }
diff --git a/views/doorkeeper/applications/show.html.erb b/views/doorkeeper/applications/show.html.erb
index 3030960c..1ffc98c9 100644
--- a/views/doorkeeper/applications/show.html.erb
+++ b/views/doorkeeper/applications/show.html.erb
@@ -1,37 +1,37 @@
- <%= link_to t('doorkeeper.applications.buttons.back'), oauth_applications_path(), class: 'button link-button button-margin' %>
+ { link_to t('doorkeeper.applications.buttons.back'), oauth_applications_path(), class: 'button link-button button-margin' }
-
<%= t('.application_id') %>:
-
<%= @application.uid %>
+
{ t('.application_id') }:
+
{ @application.uid }
-
<%= t('.secret') %>:
-
<%= @application.secret %>
+
{ t('.secret') }:
+
{ @application.secret }
-
<%= t('.callback_urls') %>:
+
{ t('.callback_urls') }:
- <% @application.redirect_uri.split.each do |uri| %>
+ { @application.redirect_uri.split.each do |uri| }
- <%= uri %>
+ { uri }
- <%= link_to t('doorkeeper.applications.buttons.authorize'), oauth_authorization_path(client_id: @application.uid, redirect_uri: uri, response_type: 'code'), class: 'button link-button', target: '_blank' %>
+ { link_to t('doorkeeper.applications.buttons.authorize'), oauth_authorization_path(client_id: @application.uid, redirect_uri: uri, response_type: 'code'), class: 'button link-button', target: '_blank' }
- <% end %>
+ { end }
-
<%= link_to t('doorkeeper.applications.buttons.edit'), edit_oauth_application_path(@application), class: 'button link-button' %>
+
{ link_to t('doorkeeper.applications.buttons.edit'), edit_oauth_application_path(@application), class: 'button link-button' }
-
<%= render 'delete_form', application: @application, submit_btn_css: 'button red-button' %>
+
{ render 'delete_form', application: @application, submit_btn_css: 'button red-button' }
-<%= render 'script' %>
+{ render 'script' }
diff --git a/views/doorkeeper/authorizations/error.html.erb b/views/doorkeeper/authorizations/error.html.erb
index 4d778e29..d43e63f7 100644
--- a/views/doorkeeper/authorizations/error.html.erb
+++ b/views/doorkeeper/authorizations/error.html.erb
@@ -1,11 +1,11 @@
- <%= @pre_auth.error_response.body[:error_description] %>
+ { @pre_auth.error_response.body[:error_description] }
diff --git a/views/doorkeeper/authorizations/new.html.erb b/views/doorkeeper/authorizations/new.html.erb
index 52b2f6a4..974ee08a 100644
--- a/views/doorkeeper/authorizations/new.html.erb
+++ b/views/doorkeeper/authorizations/new.html.erb
@@ -1,46 +1,46 @@
- <%= raw t('.prompt', client_name: "#{ @pre_auth.client.name } ") %>
+ { raw t('.prompt', client_name: "#{ @pre_auth.client.name } ") }
- <% if @pre_auth.scopes.count > 0 %>
+ { if @pre_auth.scopes.count > 0 }
-
<%= t('.able_to') %>:
+
{ t('.able_to') }:
- <% @pre_auth.scopes.each do |scope| %>
- <%= t scope, scope: [:doorkeeper, :scopes] %>
- <% end %>
+ { @pre_auth.scopes.each do |scope| }
+ { t scope, scope: [:doorkeeper, :scopes] }
+ { end }
- <% end %>
+ { end }
- <%= form_tag oauth_authorization_path, method: :post do %>
- <%= hidden_field_tag :client_id, @pre_auth.client.uid %>
- <%= hidden_field_tag :redirect_uri, @pre_auth.redirect_uri %>
- <%= hidden_field_tag :state, @pre_auth.state %>
- <%= hidden_field_tag :response_type, @pre_auth.response_type %>
- <%= hidden_field_tag :scope, @pre_auth.scope %>
- <%= submit_tag t('doorkeeper.authorizations.buttons.authorize'), class: "button" %>
- <% end %>
+ { form_tag oauth_authorization_path, method: :post do }
+ { hidden_field_tag :client_id, @pre_auth.client.uid }
+ { hidden_field_tag :redirect_uri, @pre_auth.redirect_uri }
+ { hidden_field_tag :state, @pre_auth.state }
+ { hidden_field_tag :response_type, @pre_auth.response_type }
+ { hidden_field_tag :scope, @pre_auth.scope }
+ { submit_tag t('doorkeeper.authorizations.buttons.authorize'), class: "button" }
+ { end }
- <%= form_tag oauth_authorization_path, method: :delete do %>
- <%= hidden_field_tag :client_id, @pre_auth.client.uid %>
- <%= hidden_field_tag :redirect_uri, @pre_auth.redirect_uri %>
- <%= hidden_field_tag :state, @pre_auth.state %>
- <%= hidden_field_tag :response_type, @pre_auth.response_type %>
- <%= hidden_field_tag :scope, @pre_auth.scope %>
- <%= submit_tag t('doorkeeper.authorizations.buttons.deny'), class: "button red-button" %>
- <% end %>
+ { form_tag oauth_authorization_path, method: :delete do }
+ { hidden_field_tag :client_id, @pre_auth.client.uid }
+ { hidden_field_tag :redirect_uri, @pre_auth.redirect_uri }
+ { hidden_field_tag :state, @pre_auth.state }
+ { hidden_field_tag :response_type, @pre_auth.response_type }
+ { hidden_field_tag :scope, @pre_auth.scope }
+ { submit_tag t('doorkeeper.authorizations.buttons.deny'), class: "button red-button" }
+ { end }
diff --git a/views/doorkeeper/authorizations/show.html.erb b/views/doorkeeper/authorizations/show.html.erb
index 4079ed56..4c4799ba 100644
--- a/views/doorkeeper/authorizations/show.html.erb
+++ b/views/doorkeeper/authorizations/show.html.erb
@@ -1,11 +1,11 @@
- <%= params[:code] %>
+ { params[:code] }
diff --git a/views/doorkeeper/authorized_applications/_delete_form.html.erb b/views/doorkeeper/authorized_applications/_delete_form.html.erb
index 27ea3d73..a184ad99 100644
--- a/views/doorkeeper/authorized_applications/_delete_form.html.erb
+++ b/views/doorkeeper/authorized_applications/_delete_form.html.erb
@@ -1,5 +1,5 @@
-<%- submit_btn_css ||= 'button red-button' %>
-<%= form_tag oauth_authorized_application_path(application) do %>
+{- submit_btn_css ||= 'button red-button' }
+{ form_tag oauth_authorized_application_path(application) do }
- <%= submit_tag t('doorkeeper.authorized_applications.buttons.revoke'), onclick: "return confirm('#{ t('doorkeeper.authorized_applications.confirmations.revoke') }')", class: submit_btn_css %>
-<% end %>
+ { submit_tag t('doorkeeper.authorized_applications.buttons.revoke'), onclick: "return confirm('#{ t('doorkeeper.authorized_applications.confirmations.revoke') }')", class: submit_btn_css }
+{ end }
diff --git a/views/doorkeeper/authorized_applications/index.html.erb b/views/doorkeeper/authorized_applications/index.html.erb
index 42c3127d..8f46be21 100644
--- a/views/doorkeeper/authorized_applications/index.html.erb
+++ b/views/doorkeeper/authorized_applications/index.html.erb
@@ -1,7 +1,7 @@
@@ -10,28 +10,28 @@
There are a number of apps being worked on for Metamaps currently, including the playful Metamapper Slack Bot. Check back here for updates.
If you're a developer interested in building an app for Metamaps, check out the API docs .
- <% if @applications.count > 0 %>
+ { if @applications.count > 0 }
- <%= t('doorkeeper.authorized_applications.index.application') %>
- <%= t('doorkeeper.authorized_applications.index.created_at') %>
+ { t('doorkeeper.authorized_applications.index.application') }
+ { t('doorkeeper.authorized_applications.index.created_at') }
- <% @applications.each do |application| %>
+ { @applications.each do |application| }
- <%= application.name %>
- <%= application.created_at.strftime(t('doorkeeper.authorized_applications.index.date_format')) %>
- <%= render 'delete_form', application: application %>
+ { application.name }
+ { application.created_at.strftime(t('doorkeeper.authorized_applications.index.date_format')) }
+ { render 'delete_form', application: application }
- <% end %>
+ { end }
- <% end %>
+ { end }
-<%= render 'script' %>
+{ render 'script' }
diff --git a/views/explore/active.html.erb b/views/explore/active.html.erb
index e6e2a3a6..843b1c40 100644
--- a/views/explore/active.html.erb
+++ b/views/explore/active.html.erb
@@ -1,15 +1,15 @@
-<% #
+{ #
# @file
# Shows a list of recently active maps
# GET /explore/active(.:format)
- # %>
+ # }
diff --git a/views/explore/featured.html.erb b/views/explore/featured.html.erb
index 9396ebdc..34c8cf93 100644
--- a/views/explore/featured.html.erb
+++ b/views/explore/featured.html.erb
@@ -1,15 +1,15 @@
-<% #
+{ #
# @file
# Shows a list of featured maps
# GET /explore/featured(.:format)
- # %>
+ # }
diff --git a/views/explore/mapper.html.erb b/views/explore/mapper.html.erb
index 9a24bda0..3f792e20 100644
--- a/views/explore/mapper.html.erb
+++ b/views/explore/mapper.html.erb
@@ -1,18 +1,18 @@
-<% #
+{ #
# @file
# Shows a list of a user's maps
# GET /explore/mapper/:id(.:format)
- # %>
+ # }
diff --git a/views/explore/mine.html.erb b/views/explore/mine.html.erb
index 21295d4f..f38bb518 100644
--- a/views/explore/mine.html.erb
+++ b/views/explore/mine.html.erb
@@ -1,15 +1,15 @@
-<% #
+{ #
# @file
# Shows a list of current user's maps
# GET /explore/mine(.:format)
- # %>
+ # }
diff --git a/views/explore/shared.html.erb b/views/explore/shared.html.erb
index f40e9fdf..1eb2fdec 100644
--- a/views/explore/shared.html.erb
+++ b/views/explore/shared.html.erb
@@ -1,15 +1,15 @@
-<% #
+{ #
# @file
# Shows a list of current user's maps
# GET /explore/mine(.:format)
- # %>
+ # }
diff --git a/views/explore/starred.html.erb b/views/explore/starred.html.erb
index 125c3e76..c2e8ac47 100644
--- a/views/explore/starred.html.erb
+++ b/views/explore/starred.html.erb
@@ -1,15 +1,15 @@
-<% #
+{ #
# @file
# Shows a list of current user's starred maps
# GET /explore/starred(.:format)
- # %>
+ # }
diff --git a/views/layouts/_foot.html.erb b/views/layouts/_foot.html.erb
index bc3d4223..696f1460 100644
--- a/views/layouts/_foot.html.erb
+++ b/views/layouts/_foot.html.erb
@@ -1,21 +1,21 @@
-<%= render :partial => 'layouts/lightboxes' %>
-<%= render :partial => 'layouts/templates' %>
-<%= render :partial => 'shared/metacodeCssColors' %>
-<%= render :partial => 'layouts/googleanalytics' if ENV["GA_TRACKING_CODE"].present? %>
+{ render :partial => 'layouts/lightboxes' }
+{ render :partial => 'layouts/templates' }
+{ render :partial => 'shared/metacodeCssColors' }
+{ render :partial => 'layouts/googleanalytics' if ENV["GA_TRACKING_CODE"].present? }