About page, index page[en]
This commit is contained in:
parent
215c00a1a8
commit
9305237bac
|
@ -9,11 +9,11 @@ class window.Ajax
|
|||
|
||||
loadIndexPage: ->
|
||||
$('#content').load '/greetings/'
|
||||
_ajax.setTitle ''
|
||||
false
|
||||
|
||||
loadAboutPage: ->
|
||||
$.get '/templates/about.html', (data) ->
|
||||
_page.renderTextpage data
|
||||
$('#content').load '/about/'
|
||||
_ajax.setTitle 'About'
|
||||
false
|
||||
|
||||
|
@ -34,14 +34,12 @@ class window.Ajax
|
|||
detectPage: () ->
|
||||
if m = _ajax.getAnchor().match /\/artist\/(.+)\//
|
||||
_search.loadArtistData m[1]
|
||||
else if _ajax.getAnchor().match /\//
|
||||
_ajax.loadIndexPage();
|
||||
else if _ajax.getAnchor().match /\/settings\//
|
||||
_settings.loadSettingsPage()
|
||||
else if _ajax.getAnchor().match /\/about\//
|
||||
_ajax.loadAboutPage()
|
||||
else
|
||||
#_ajax.loadSearchPage()
|
||||
_ajax.loadIndexPage();
|
||||
false
|
||||
|
||||
$(window).bind 'hashchange', ->
|
||||
|
|
|
@ -11,6 +11,10 @@ class ApplicationController < ActionController::Base
|
|||
render :partial => 'greetings'
|
||||
end
|
||||
|
||||
def about
|
||||
render :partial => 'about'
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
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 '/greetings/' => 'application#greetings'
|
||||
match '/about/' => 'application#about'
|
||||
|
||||
match 'user/auth' => 'user#auth'
|
||||
match 'user/update' => 'user#update'
|
||||
|
|
Loading…
Reference in New Issue