Nicolae Claudius
13 years ago
17 changed files with 113 additions and 10 deletions
@ -0,0 +1,4 @@
|
||||
class DashboardController < ApplicationController |
||||
def index |
||||
end |
||||
end |
@ -1,4 +1,5 @@
|
||||
class DomainsController < ApplicationController |
||||
active_scaffold :domain do |conf| |
||||
conf.columns = [:name, :master, :last_check, :type, :notified_serial, :account] |
||||
end |
||||
end |
||||
|
@ -0,0 +1,8 @@
|
||||
class HomeController < ApplicationController |
||||
skip_before_filter :authenticate_user! |
||||
layout 'home' |
||||
|
||||
def index |
||||
redirect_to dashboard_path if user_signed_in? |
||||
end |
||||
end |
@ -1,4 +1,5 @@
|
||||
class RecordsController < ApplicationController |
||||
active_scaffold :record do |conf| |
||||
conf.columns = [:name, :type, :content, :ttl, :prio, :change_date] |
||||
end |
||||
end |
||||
|
@ -1,4 +1,5 @@
|
||||
class SupermastersController < ApplicationController |
||||
active_scaffold :supermaster do |conf| |
||||
conf.columns = [:nameserver, :account] |
||||
end |
||||
end |
||||
|
@ -0,0 +1,15 @@
|
||||
<p>Marketing ...</p> |
||||
|
||||
<p> |
||||
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium |
||||
doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore |
||||
veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam |
||||
voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur |
||||
magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam |
||||
est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed |
||||
quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam |
||||
quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam |
||||
corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis |
||||
autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil |
||||
molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur? |
||||
</p> |
@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html> |
||||
<html> |
||||
<head> |
||||
<title>Simple DNS</title> |
||||
<%= stylesheet_link_tag "application" %> |
||||
<%= javascript_include_tag "application" %> |
||||
<%= csrf_meta_tag %> |
||||
</head> |
||||
<body> |
||||
|
||||
<div id="container"> |
||||
<%= render :partial => 'fragments/top' %> |
||||
<div id="wrapper" class="wat-cf"> |
||||
<%= flash_display 'flash' %> |
||||
<%= yield %> |
||||
</div> |
||||
<%= render :partial => 'fragments/bottom' %> |
||||
</div> |
||||
|
||||
</body> |
||||
</html> |
@ -0,0 +1,5 @@
|
||||
require 'spec_helper' |
||||
|
||||
describe DashboardController do |
||||
|
||||
end |
@ -0,0 +1,5 @@
|
||||
require 'spec_helper' |
||||
|
||||
describe HomeController do |
||||
|
||||
end |
@ -0,0 +1,15 @@
|
||||
require 'spec_helper' |
||||
|
||||
# Specs in this file have access to a helper object that includes |
||||
# the DashboardHelper. For example: |
||||
# |
||||
# describe DashboardHelper do |
||||
# describe "string concat" do |
||||
# it "concats two strings with spaces" do |
||||
# helper.concat_strings("this","that").should == "this that" |
||||
# end |
||||
# end |
||||
# end |
||||
describe DashboardHelper do |
||||
pending "add some examples to (or delete) #{__FILE__}" |
||||
end |
@ -0,0 +1,15 @@
|
||||
require 'spec_helper' |
||||
|
||||
# Specs in this file have access to a helper object that includes |
||||
# the HomeHelper. For example: |
||||
# |
||||
# describe HomeHelper do |
||||
# describe "string concat" do |
||||
# it "concats two strings with spaces" do |
||||
# helper.concat_strings("this","that").should == "this that" |
||||
# end |
||||
# end |
||||
# end |
||||
describe HomeHelper do |
||||
pending "add some examples to (or delete) #{__FILE__}" |
||||
end |
Loading…
Reference in new issue