Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
325 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
module Admin::RolesHelper | ||
def role_spinner(which) | ||
image('spinner.gif', | ||
:class => 'busy', :id => "busy_#{which}", | ||
:alt => "", :title => "", | ||
:style => 'display: none;') | ||
image('spinner.gif', :alt => "loading...") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
en: | ||
rbac base: Rbac Base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
default: --format progress features --tags ~@proposed,~@in_progress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
db/migrate/20100705182511_rename_role_developer_to_designer.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class RenameRoleDeveloperToDesigner < ActiveRecord::Migration | ||
def self.up | ||
if role = Role.find_by_role_name('Developer') | ||
role.update_attribute(:role_name, 'Designer') | ||
end | ||
end | ||
|
||
def self.down | ||
if role = Role.find_by_role_name('Designer') | ||
role.update_attribute(:role_name, 'Developer') | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Sets up the Rails environment for Cucumber | ||
ENV["RAILS_ENV"] = "test" | ||
# Extension root | ||
extension_env = File.expand_path(File.dirname(__FILE__) + '/../../../../../config/environment') | ||
require extension_env+'.rb' | ||
|
||
Dir.glob(File.join(RADIANT_ROOT, "features", "**", "*.rb")).each {|step| require step} | ||
|
||
Cucumber::Rails::World.class_eval do | ||
include Dataset | ||
datasets_directory "#{RADIANT_ROOT}/spec/datasets" | ||
Dataset::Resolver.default = Dataset::DirectoryResolver.new("#{RADIANT_ROOT}/spec/datasets", File.dirname(__FILE__) + '/../../spec/datasets', File.dirname(__FILE__) + '/../datasets') | ||
self.datasets_database_dump_path = "#{Rails.root}/tmp/dataset" | ||
|
||
# dataset :rbac_base | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
def path_to(page_name) | ||
case page_name | ||
|
||
when /the homepage/i | ||
root_path | ||
|
||
when /login/i | ||
login_path | ||
# Add more page name => path mappings here | ||
|
||
else | ||
raise "Can't find mapping from \"#{page_name}\" to a path." | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,20 @@ | ||
#role_list { | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
#role_list li { | ||
border-bottom: 1px solid #efefef; | ||
margin: 0; | ||
padding: 5px 5px 5px 25px; | ||
position: relative; | ||
line-height: 1.8; | ||
} | ||
#role_list li.none { | ||
background: #eee; | ||
color: #999; | ||
} | ||
#role_list li a { | ||
border: 1px solid transparent; | ||
padding: 3px; | ||
text-decoration: none; | ||
} | ||
#role_list li a:hover { | ||
border-color: black; | ||
color: black; | ||
} | ||
#role_list li span.remover { | ||
display: block; | ||
position: absolute; | ||
top: 5px; | ||
right: 5px; | ||
} | ||
#role_list li span.remover a, #role_list li span.remover a:hover { | ||
background: #fff; | ||
} | ||
ul.UserList { | ||
background: #eee; | ||
.UserList { | ||
background: #fff; | ||
color: #000; | ||
list-style: none; | ||
margin: 0 0 1em; | ||
min-height: 1em; | ||
padding: 10px 0; | ||
} | ||
ul.UserList.hover { | ||
.UserList.hover { | ||
background: #efe; | ||
} | ||
ul.UserList li { | ||
.UserList li { | ||
line-height: 1.2em; | ||
list-style: none; | ||
margin: 0; | ||
padding: 2px 2px 2px 25px; | ||
} | ||
.rbac_busy_marker { | ||
position: absolute; | ||
} |
Oops, something went wrong.