About page, index page[en]
This commit is contained in:
parent
215c00a1a8
commit
9305237bac
|
@ -9,12 +9,12 @@ class window.Ajax
|
||||||
|
|
||||||
loadIndexPage: ->
|
loadIndexPage: ->
|
||||||
$('#content').load '/greetings/'
|
$('#content').load '/greetings/'
|
||||||
|
_ajax.setTitle ''
|
||||||
false
|
false
|
||||||
|
|
||||||
loadAboutPage: ->
|
loadAboutPage: ->
|
||||||
$.get '/templates/about.html', (data) ->
|
$('#content').load '/about/'
|
||||||
_page.renderTextpage data
|
_ajax.setTitle 'About'
|
||||||
_ajax.setTitle 'About'
|
|
||||||
false
|
false
|
||||||
|
|
||||||
setArchor: (anchor) ->
|
setArchor: (anchor) ->
|
||||||
|
@ -34,14 +34,12 @@ class window.Ajax
|
||||||
detectPage: () ->
|
detectPage: () ->
|
||||||
if m = _ajax.getAnchor().match /\/artist\/(.+)\//
|
if m = _ajax.getAnchor().match /\/artist\/(.+)\//
|
||||||
_search.loadArtistData m[1]
|
_search.loadArtistData m[1]
|
||||||
else if _ajax.getAnchor().match /\//
|
|
||||||
_ajax.loadIndexPage();
|
|
||||||
else if _ajax.getAnchor().match /\/settings\//
|
else if _ajax.getAnchor().match /\/settings\//
|
||||||
_settings.loadSettingsPage()
|
_settings.loadSettingsPage()
|
||||||
else if _ajax.getAnchor().match /\/about\//
|
else if _ajax.getAnchor().match /\/about\//
|
||||||
_ajax.loadAboutPage()
|
_ajax.loadAboutPage()
|
||||||
else
|
else
|
||||||
#_ajax.loadSearchPage()
|
_ajax.loadIndexPage();
|
||||||
false
|
false
|
||||||
|
|
||||||
$(window).bind 'hashchange', ->
|
$(window).bind 'hashchange', ->
|
||||||
|
|
|
@ -11,6 +11,10 @@ class ApplicationController < ActionController::Base
|
||||||
render :partial => 'greetings'
|
render :partial => 'greetings'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def about
|
||||||
|
render :partial => 'about'
|
||||||
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def authorize
|
def authorize
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
%h2 Write us a letter!
|
||||||
|
%br
|
||||||
|
.row
|
||||||
|
.span3
|
||||||
|
%address
|
||||||
|
%strong Site issues?
|
||||||
|
%br
|
||||||
|
%a{ :href => "mailto:support@beathaven.org" } support@beathaven.org
|
||||||
|
.span6
|
||||||
|
%address
|
||||||
|
%strong Everything else (suggestions, compliments, threats)
|
||||||
|
%br
|
||||||
|
%a{ :href => "mailto:contact@beathaven.org" } contact@beathaven.org
|
|
@ -0,0 +1,13 @@
|
||||||
|
%h2 Напишите нам письмо!
|
||||||
|
%br
|
||||||
|
.row
|
||||||
|
.span3
|
||||||
|
%address
|
||||||
|
%strong Проблемы с сайтом?
|
||||||
|
%br
|
||||||
|
%a{ :href => "mailto:support@beathaven.org" } support@beathaven.org
|
||||||
|
.span6
|
||||||
|
%address
|
||||||
|
%strong Все остальное (пожелания, благодарности, угрозы)
|
||||||
|
%br
|
||||||
|
%a{ :href => "mailto:contact@beathaven.org" } contact@beathaven.org
|
|
@ -0,0 +1 @@
|
||||||
|
%h2 Halló!
|
|
@ -1 +1 @@
|
||||||
%h1 Привет!
|
%h2 Привет!
|
|
@ -58,6 +58,7 @@ Beathaven::Application.routes.draw do
|
||||||
|
|
||||||
match '/' => 'application#index'
|
match '/' => 'application#index'
|
||||||
match '/greetings/' => 'application#greetings'
|
match '/greetings/' => 'application#greetings'
|
||||||
|
match '/about/' => 'application#about'
|
||||||
|
|
||||||
match 'user/auth' => 'user#auth'
|
match 'user/auth' => 'user#auth'
|
||||||
match 'user/update' => 'user#update'
|
match 'user/update' => 'user#update'
|
||||||
|
|
Loading…
Reference in New Issue