1
0
Fork 0

About page, index page[en]

This commit is contained in:
Gregory Eremin 2011-09-19 16:31:05 +04:00
parent 215c00a1a8
commit 9305237bac
7 changed files with 37 additions and 7 deletions

View File

@ -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', ->

View File

@ -11,6 +11,10 @@ class ApplicationController < ActionController::Base
render :partial => 'greetings'
end
def about
render :partial => 'about'
end
protected
def authorize

View File

@ -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

View File

@ -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

View File

@ -0,0 +1 @@
%h2 Halló!

View File

@ -1 +1 @@
%h1 Привет!
%h2 Привет!

View File

@ -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'