talia_core 0.4.22 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +2 -2
- data/config/database.yml +9 -9
- data/config/rdfstore.yml +4 -4
- data/config/talia_core.yml +5 -2
- data/generators/generator_helpers.rb +66 -25
- data/generators/talia_admin/talia_admin_generator.rb +9 -9
- data/generators/talia_admin/templates/app/controllers/admin/admin_site_controller.rb +5 -0
- data/generators/talia_admin/templates/app/controllers/admin/custom_templates_controller.rb +7 -0
- data/generators/talia_admin/templates/app/controllers/admin/front_controller.rb +19 -0
- data/generators/talia_admin/templates/app/controllers/admin/talia_collections_controller.rb +7 -0
- data/generators/talia_admin/templates/app/controllers/admin/talia_sources_controller.rb +17 -0
- data/generators/talia_admin/templates/app/controllers/admin/users_controller.rb +7 -0
- data/generators/talia_admin/templates/app/controllers/users_controller.rb +7 -0
- data/generators/talia_admin/templates/app/helpers/admin/front_helper.rb +2 -0
- data/generators/talia_admin/templates/app/helpers/admin/talia_sources_helper.rb +7 -0
- data/generators/talia_admin/templates/app/helpers/users_helper.rb +2 -0
- data/generators/talia_admin/templates/app/models/guest.rb +7 -0
- data/generators/talia_admin/templates/app/models/talia_collection.rb +56 -0
- data/generators/talia_admin/templates/app/models/talia_source.rb +43 -0
- data/generators/talia_admin/templates/app/models/user.rb +59 -0
- data/generators/talia_admin/templates/app/models/user_mailer.rb +14 -0
- data/generators/talia_admin/templates/app/viewhints/talia_source_hints.rb +3 -0
- data/generators/talia_admin/templates/app/views/admin/custom_templates/index.dryml +7 -0
- data/generators/talia_admin/templates/app/views/admin/front/index.dryml +29 -0
- data/generators/talia_admin/templates/app/views/admin/front/summary.dryml +103 -0
- data/generators/talia_admin/templates/app/views/admin/talia_collections/index.dryml +7 -0
- data/generators/talia_admin/templates/app/views/admin/talia_sources/index.dryml +17 -0
- data/generators/talia_admin/templates/app/views/admin/talia_sources/show.dryml +8 -0
- data/generators/talia_admin/templates/app/views/admin/users/index.dryml +7 -0
- data/generators/talia_admin/templates/app/views/taglibs/admin_site.dryml +91 -0
- data/generators/talia_admin/templates/app/views/taglibs/application.dryml +9 -0
- data/generators/talia_admin/templates/app/views/taglibs/auto/admin/rapid/cards.dryml +34 -0
- data/generators/talia_admin/templates/app/views/taglibs/auto/admin/rapid/forms.dryml +71 -0
- data/generators/talia_admin/templates/app/views/taglibs/auto/admin/rapid/pages.dryml +543 -0
- data/generators/talia_admin/templates/app/views/taglibs/auto/rapid/cards.dryml +37 -0
- data/generators/talia_admin/templates/app/views/taglibs/auto/rapid/forms.dryml +35 -0
- data/generators/talia_admin/templates/app/views/taglibs/auto/rapid/pages.dryml +175 -0
- data/generators/talia_admin/templates/app/views/taglibs/front_site.dryml +1 -0
- data/generators/talia_admin/templates/app/views/taglibs/themes/clean/clean.dryml +10 -0
- data/generators/talia_admin/templates/app/views/user_mailer/forgot_password.erb +10 -0
- data/generators/talia_admin/templates/config/hobo_initializer.rb +1 -0
- data/generators/talia_admin/templates/migrations/create_users.rb +22 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/101-3B5F87-ACD3E6.png +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/30-3E547A-242E42.png +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/30-DBE1E5-FCFEF5.png +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/300-ACD3E6-fff.png +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/50-ACD3E6-fff.png +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/fieldbg.gif +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/pencil.png +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/small_close.png +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/images/spinner.gif +0 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/stylesheets/clean.css +326 -0
- data/generators/talia_admin/templates/public/hobothemes/clean/stylesheets/rapid-ui.css +100 -0
- data/generators/talia_admin/templates/public/javascripts/IE7.js +2 -0
- data/generators/talia_admin/templates/public/javascripts/blank.gif +0 -0
- data/generators/talia_admin/templates/public/javascripts/dryml-support.js +132 -0
- data/generators/talia_admin/templates/public/javascripts/hobo-rapid.js +937 -0
- data/generators/talia_admin/templates/public/javascripts/ie7-recalc.js +166 -0
- data/generators/talia_admin/templates/public/javascripts/lowpro.js +43 -25
- data/generators/talia_admin/templates/public/stylesheets/application.css +0 -0
- data/generators/talia_admin/templates/public/stylesheets/hobo-rapid.css +94 -0
- data/generators/talia_admin/templates/public/stylesheets/reset.css +95 -0
- data/generators/talia_admin/templates/test/fixtures/users.yml +7 -0
- data/generators/talia_admin/templates/test/functional/admin/{custom_templates_controller_test.rb → front_controller_test.rb} +1 -1
- data/generators/talia_admin/templates/test/functional/users_controller_test.rb +8 -0
- data/generators/talia_admin/templates/test/unit/user_test.rb +8 -0
- data/generators/talia_base/talia_base_generator.rb +24 -17
- data/generators/talia_oai/USAGE +0 -0
- data/generators/talia_oai/talia_oai_generator.rb +19 -0
- data/generators/talia_oai/templates/oai_controller.rb +9 -0
- data/generators/talia_oai/templates/oai_initializer.rb +16 -0
- data/lib/custom_template.rb +24 -0
- data/lib/talia_core/active_source_parts/class_methods.rb +1 -1
- data/lib/talia_core/active_source_parts/finders.rb +4 -0
- data/lib/talia_core/collection.rb +4 -0
- data/lib/talia_core/oai/active_source_model.rb +113 -0
- data/lib/talia_core/oai/active_source_oai_adapter/class_methods.rb +17 -0
- data/lib/talia_core/oai/active_source_oai_adapter.rb +106 -0
- data/lib/talia_core/semantic_property.rb +1 -0
- data/lib/talia_core/semantic_relation.rb +1 -0
- data/test/talia_core/active_source_test.rb +13 -0
- metadata +71 -59
- data/generators/talia_admin/templates/controllers/admin/background_controller.rb +0 -52
- data/generators/talia_admin/templates/controllers/admin/custom_templates_controller.rb +0 -25
- data/generators/talia_admin/templates/controllers/admin/locales_controller.rb +0 -15
- data/generators/talia_admin/templates/controllers/admin/roles_controller.rb +0 -8
- data/generators/talia_admin/templates/controllers/admin/sources_controller.rb +0 -9
- data/generators/talia_admin/templates/controllers/admin/translations_controller.rb +0 -61
- data/generators/talia_admin/templates/controllers/admin/users_controller.rb +0 -10
- data/generators/talia_admin/templates/controllers/admin_controller.rb +0 -7
- data/generators/talia_admin/templates/helpers/admin/background_helper.rb +0 -60
- data/generators/talia_admin/templates/helpers/admin/custom_templates_helper.rb +0 -5
- data/generators/talia_admin/templates/helpers/admin/locales_helper.rb +0 -2
- data/generators/talia_admin/templates/helpers/admin/roles_helper.rb +0 -2
- data/generators/talia_admin/templates/helpers/admin/sources_helper.rb +0 -65
- data/generators/talia_admin/templates/helpers/admin/translations_helper.rb +0 -51
- data/generators/talia_admin/templates/helpers/admin/users_helper.rb +0 -11
- data/generators/talia_admin/templates/helpers/admin_helper.rb +0 -30
- data/generators/talia_admin/templates/migrations/populate_users.rb +0 -14
- data/generators/talia_admin/templates/models/role.rb +0 -3
- data/generators/talia_admin/templates/public/javascripts/backend.js +0 -24
- data/generators/talia_admin/templates/public/stylesheets/talia_core/backend.css +0 -463
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/body_bg.gif +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/footer_bg.gif +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/header.jpg +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/header_bg.gif +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/menu.jpg +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/menu_bg.gif +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/opednid.gif +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/page_bg.jpg +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/triangolino.gif +0 -0
- data/generators/talia_admin/templates/public/stylesheets/talia_core/images/backend/triangolino_full.gif +0 -0
- data/generators/talia_admin/templates/test/functional/admin/locales_controller_test.rb +0 -35
- data/generators/talia_admin/templates/test/functional/admin/sources_controller_test.rb +0 -109
- data/generators/talia_admin/templates/test/functional/admin/translations_controller_test.rb +0 -93
- data/generators/talia_admin/templates/test/functional/admin/users_controller_test.rb +0 -67
- data/generators/talia_admin/templates/test/functional/admin_controller_test.rb +0 -15
- data/generators/talia_admin/templates/views/admin/background/_finished.html.erb +0 -9
- data/generators/talia_admin/templates/views/admin/background/_pending.html.erb +0 -1
- data/generators/talia_admin/templates/views/admin/background/_progress.html.erb +0 -15
- data/generators/talia_admin/templates/views/admin/background/_running.html.erb +0 -11
- data/generators/talia_admin/templates/views/admin/background/environment.html.erb +0 -12
- data/generators/talia_admin/templates/views/admin/background/show.html.erb +0 -17
- data/generators/talia_admin/templates/views/admin/background/stderr.html.erb +0 -6
- data/generators/talia_admin/templates/views/admin/background/stdin.html.erb +0 -6
- data/generators/talia_admin/templates/views/admin/background/stdout.html.erb +0 -6
- data/generators/talia_admin/templates/views/admin/custom_templates/_content_form_column.rhtml +0 -2
- data/generators/talia_admin/templates/views/admin/custom_templates/_template_type_form_column.rhtml +0 -2
- data/generators/talia_admin/templates/views/admin/index.html.erb +0 -5
- data/generators/talia_admin/templates/views/admin/locales/new.html.erb +0 -9
- data/generators/talia_admin/templates/views/admin/sources/_show.html.erb +0 -13
- data/generators/talia_admin/templates/views/admin/translations/_new_translation.html.erb +0 -7
- data/generators/talia_admin/templates/views/admin/translations/_translation.html.erb +0 -10
- data/generators/talia_admin/templates/views/admin/translations/edit.html.erb +0 -16
- data/generators/talia_admin/templates/views/layouts/admin.html.erb +0 -56
- data/generators/talia_base/templates/script/setup_talia_backend +0 -43
@@ -0,0 +1,175 @@
|
|
1
|
+
<!-- AUTOMATICALLY GENERATED FILE - DO NOT EDIT -->
|
2
|
+
|
3
|
+
<!-- ====== Main Navigation ====== -->
|
4
|
+
|
5
|
+
<def tag="main-nav">
|
6
|
+
<navigation class="main-nav" merge-attrs param="default">
|
7
|
+
<nav-item href="#{base_url}/">Home</nav-item>
|
8
|
+
</navigation>
|
9
|
+
</def>
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
<!-- ====== User Pages ====== -->
|
15
|
+
|
16
|
+
<def tag="index-page" for="User">
|
17
|
+
<page merge title="#{ht 'users.index.title', :default=>['Users'] }">
|
18
|
+
<body: class="index-page user" param/>
|
19
|
+
|
20
|
+
<content: param>
|
21
|
+
<header param="content-header">
|
22
|
+
<h2 param="heading">
|
23
|
+
<ht key="users.index.heading">
|
24
|
+
Users
|
25
|
+
</ht>
|
26
|
+
</h2>
|
27
|
+
|
28
|
+
<p param="count" if>
|
29
|
+
<ht key="users.collection.count" count="&this.size">
|
30
|
+
There <count prefix="are"/>
|
31
|
+
</ht>
|
32
|
+
</p>
|
33
|
+
</header>
|
34
|
+
|
35
|
+
<section param="content-body">
|
36
|
+
|
37
|
+
<page-nav param="top-page-nav"/>
|
38
|
+
|
39
|
+
<collection param/>
|
40
|
+
|
41
|
+
<page-nav param="bottom-page-nav"/>
|
42
|
+
|
43
|
+
|
44
|
+
</section>
|
45
|
+
</content:>
|
46
|
+
</page>
|
47
|
+
</def>
|
48
|
+
|
49
|
+
|
50
|
+
<def tag="new-page" for="User">
|
51
|
+
<page merge title="#{ht 'users.new.title', :default=>[' New User'] }">
|
52
|
+
<body: class="new-page user" param/>
|
53
|
+
|
54
|
+
<content: param>
|
55
|
+
<section param="content-header">
|
56
|
+
<h2 param="heading">
|
57
|
+
<ht key="users.new.heading">
|
58
|
+
New User
|
59
|
+
</ht>
|
60
|
+
</h2>
|
61
|
+
</section>
|
62
|
+
|
63
|
+
<section param="content-body">
|
64
|
+
<form param>
|
65
|
+
<submit: label="#{ht 'users.actions.create', :default=>['Create User']}"/>
|
66
|
+
</form>
|
67
|
+
</section>
|
68
|
+
</content:>
|
69
|
+
</page>
|
70
|
+
</def>
|
71
|
+
|
72
|
+
|
73
|
+
<def tag="show-page" for="User">
|
74
|
+
<page merge title="#{ht 'users.show.title', :default=>['User'] }">
|
75
|
+
|
76
|
+
<body: class="show-page user" param/>
|
77
|
+
|
78
|
+
<content: param>
|
79
|
+
<header param="content-header">
|
80
|
+
<h2 param="heading">
|
81
|
+
<ht key="users.show.heading" name="&this.respond_to?(:name) ? this.name : ''">
|
82
|
+
<name/>
|
83
|
+
</ht>
|
84
|
+
</h2>
|
85
|
+
|
86
|
+
<record-flags fields="administrator" param/>
|
87
|
+
|
88
|
+
<a action="edit" if="&can_edit?" param="edit-link">
|
89
|
+
<ht key="users.actions.edit" name="&this.respond_to?(:name) ? this.name : ''">
|
90
|
+
Edit User
|
91
|
+
</ht>
|
92
|
+
</a>
|
93
|
+
</header>
|
94
|
+
|
95
|
+
<section param="content-body">
|
96
|
+
<field-list fields="email_address, state" param/>
|
97
|
+
</section>
|
98
|
+
</content:>
|
99
|
+
|
100
|
+
</page>
|
101
|
+
</def>
|
102
|
+
|
103
|
+
|
104
|
+
<def tag="edit-page" for="User">
|
105
|
+
<page merge title="#{ht 'users.edit.title', :default=>['Edit User'] }">
|
106
|
+
|
107
|
+
<body: class="edit-page user" param/>
|
108
|
+
|
109
|
+
<content:>
|
110
|
+
<section param="content-header">
|
111
|
+
<h2 param="heading">
|
112
|
+
<ht key="users.edit.heading" name="&this.respond_to?(:name) ? this.name : ''">
|
113
|
+
Edit <type-name/>
|
114
|
+
</ht>
|
115
|
+
</h2>
|
116
|
+
<delete-button label="#{ht 'users.actions.delete', :default=>['Remove This User']}" param/>
|
117
|
+
</section>
|
118
|
+
|
119
|
+
<section param="content-body">
|
120
|
+
<form param/>
|
121
|
+
</section>
|
122
|
+
</content:>
|
123
|
+
|
124
|
+
</page>
|
125
|
+
</def>
|
126
|
+
|
127
|
+
|
128
|
+
<def tag="signup-page" polymorphic/>
|
129
|
+
<def tag="signup-page" for="User">
|
130
|
+
|
131
|
+
<page title="#{ht 'users.signup.title', :default=>['Signup']}" merge>
|
132
|
+
|
133
|
+
<body: class="lifecycle-start-page signup-page" param/>
|
134
|
+
|
135
|
+
<content: param>
|
136
|
+
<header param="content-header">
|
137
|
+
<h2 param="heading">
|
138
|
+
<ht key="users.signup.heading">
|
139
|
+
Signup
|
140
|
+
</ht>
|
141
|
+
</h2>
|
142
|
+
</header>
|
143
|
+
|
144
|
+
<section param="content-body">
|
145
|
+
<signup-form param="form"/>
|
146
|
+
</section>
|
147
|
+
</content:>
|
148
|
+
|
149
|
+
</page>
|
150
|
+
</def>
|
151
|
+
|
152
|
+
<def tag="reset-password-page" polymorphic/>
|
153
|
+
<def tag="reset-password-page" for="User">
|
154
|
+
<page title="#{ht 'users.reset_password.title', :default=>['Reset Password']}" merge>
|
155
|
+
|
156
|
+
<body: class="lifecycle-transition-page reset-password-page" param/>
|
157
|
+
|
158
|
+
<content:>
|
159
|
+
<header param="content-header">
|
160
|
+
<h2 param="heading">
|
161
|
+
<ht key="users.reset_password.heading">
|
162
|
+
Reset Password
|
163
|
+
</ht>
|
164
|
+
</h2>
|
165
|
+
</header>
|
166
|
+
|
167
|
+
<section param="content-body">
|
168
|
+
<reset-password-form param="form"/>
|
169
|
+
</section>
|
170
|
+
</content:>
|
171
|
+
|
172
|
+
</page>
|
173
|
+
</def>
|
174
|
+
|
175
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
<def tag="app-name">Talia New 2.3</def>
|
@@ -0,0 +1 @@
|
|
1
|
+
Hobo::ModelRouter.reload_routes_on_every_request = true
|
@@ -0,0 +1,22 @@
|
|
1
|
+
class CreateUsers < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
create_table :users do |t|
|
4
|
+
t.string :crypted_password, :limit => 40
|
5
|
+
t.string :salt, :limit => 40
|
6
|
+
t.string :remember_token
|
7
|
+
t.datetime :remember_token_expires_at
|
8
|
+
t.string :name
|
9
|
+
t.string :email_address
|
10
|
+
t.boolean :administrator, :default => false
|
11
|
+
t.datetime :created_at
|
12
|
+
t.datetime :updated_at
|
13
|
+
t.string :state, :default => "active"
|
14
|
+
t.datetime :key_timestamp
|
15
|
+
end
|
16
|
+
add_index :users, [:state]
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.down
|
20
|
+
drop_table :users
|
21
|
+
end
|
22
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,326 @@
|
|
1
|
+
html, body {color: #193440; background: url(../images/300-ACD3E6-fff.png) repeat-x #fff; }
|
2
|
+
.page-header {color: white; background: url(../images/101-3B5F87-ACD3E6.png) repeat-x #3F606E;}
|
3
|
+
.page-header .navigation.main-nav a {
|
4
|
+
background: url(../images/30-3E547A-242E42.png) repeat-x #242E42;
|
5
|
+
}
|
6
|
+
.page-header .navigation.main-nav li.current a {
|
7
|
+
color: #222;
|
8
|
+
background: url(../images/30-DBE1E5-FCFEF5.png) repeat-x #FCFEF5;
|
9
|
+
border-top: 1px solid white;
|
10
|
+
border-left: 1px solid white;
|
11
|
+
border-right: 1px solid white;
|
12
|
+
}
|
13
|
+
.page-header .navigation.main-nav a:hover {background: #193440;}
|
14
|
+
.section.content {background: #FCFFF5;}
|
15
|
+
.button {color: white; background: #5B8BA0;}
|
16
|
+
.button:hover {background-color: #193440;}
|
17
|
+
.add-to-collection {background: #E6E7DE;}
|
18
|
+
.aside { background: #E5E5E5;}
|
19
|
+
|
20
|
+
/* Column Layout */
|
21
|
+
|
22
|
+
.section-group {display: table; width: 100%;}
|
23
|
+
.section-group-inner {display: table-row;}
|
24
|
+
.section-group-inner > * {display: table-cell; vertical-align: top;}
|
25
|
+
.aside {width: 210px;} /* works with % too */
|
26
|
+
.aside { padding: 20px;}
|
27
|
+
/* ------ */
|
28
|
+
|
29
|
+
|
30
|
+
body {
|
31
|
+
width: 960px;
|
32
|
+
margin: 0 auto 20px;
|
33
|
+
font: 12px "Lucida Grande", "Trebuchet MS", Arial, sans-serif; line-height: 18px;
|
34
|
+
}
|
35
|
+
h1, h2, h3 {font-weight: normal;}
|
36
|
+
h1 {margin: 20px 0 10px; font-size: 22px; line-height: 22px;}
|
37
|
+
h2 {margin: 15px 0 10px; font-size: 18px; line-height: 18px;}
|
38
|
+
h3 {margin: 10px 0 5px; font-size: 16px; line-height: 16px;}
|
39
|
+
h4 {margin: 10px 0 5px; font-size: 14px; line-height: 14px;}
|
40
|
+
h5 {margin: 10px 0 5px; font-size: 12px; line-height: 12px;}
|
41
|
+
h6 {margin: 10px 0 5px; font-size: 10px; line-height: 10px;}
|
42
|
+
|
43
|
+
li {margin-left: 20px;}
|
44
|
+
|
45
|
+
a {
|
46
|
+
border-bottom: 1px dotted #ccc;
|
47
|
+
color: #222; background: #fafafa;
|
48
|
+
text-decoration: none;
|
49
|
+
}
|
50
|
+
a:hover {
|
51
|
+
border-bottom: 1px dotted #aaa;
|
52
|
+
color: black; background: #f2f2f2;
|
53
|
+
}
|
54
|
+
h1 a, h2 a, h3 a {border: none; background: none;}
|
55
|
+
|
56
|
+
pre, code {
|
57
|
+
font-family: "Courier New", Courier, monospace;
|
58
|
+
}
|
59
|
+
|
60
|
+
input.text, input.string, input.email-address, input.password, input.search, input.integer, input.float, textarea {
|
61
|
+
border-top:1px solid #7c7c7c;
|
62
|
+
border-left:1px solid #c3c3c3;
|
63
|
+
border-right:1px solid #c3c3c3;
|
64
|
+
border-bottom:1px solid #ddd;
|
65
|
+
background: #fff url(../images/fieldbg.gif) repeat-x top;
|
66
|
+
font-size: 1.1em; line-height: 1.3em;
|
67
|
+
}
|
68
|
+
|
69
|
+
input.file_upload {
|
70
|
+
border: 1px dotted #666;
|
71
|
+
}
|
72
|
+
|
73
|
+
.button {
|
74
|
+
padding: 6px 10px;
|
75
|
+
border: none;
|
76
|
+
width: auto;
|
77
|
+
font-size: 11px; font-weight: bold;
|
78
|
+
margin-top: 10px;
|
79
|
+
}
|
80
|
+
.button:hover {cursor: pointer;}
|
81
|
+
form .actions {_zoom: 1; overflow: hidden; font-size: 11px;}
|
82
|
+
form .actions input { margin: 0; }
|
83
|
+
|
84
|
+
.flash {
|
85
|
+
margin: 0 40px 10px; padding: 10px 30px; border-width: 2px 0;
|
86
|
+
color: white;
|
87
|
+
}
|
88
|
+
.flash.notice {background: #4E6A8F;}
|
89
|
+
.flash.error {background: #BC1C3D;}
|
90
|
+
.section.with-flash { padding-top: 20px; }
|
91
|
+
|
92
|
+
/* rails error message */
|
93
|
+
.error-messages {
|
94
|
+
background: #BC1C3D;
|
95
|
+
border: 1px solid #900024;
|
96
|
+
padding: 15px 30px;
|
97
|
+
color: white;
|
98
|
+
margin-bottom: 20px;
|
99
|
+
}
|
100
|
+
.error-messages h2 {
|
101
|
+
color: white; margin-top: 0; padding-bottom: 0; font-size: 16px;
|
102
|
+
}
|
103
|
+
.error-messages li {margin-left: 20px; list-style: square;}
|
104
|
+
|
105
|
+
.field-with-errors input, .field-with-errors textarea, .field-with-errors select {border: 2px solid #BC1C3D;}
|
106
|
+
|
107
|
+
#ajax-progress {
|
108
|
+
padding: 8px 20px 8px 40px;
|
109
|
+
border: 1px solid #444;
|
110
|
+
background: black url(../images/spinner.gif) no-repeat 10px 8px;
|
111
|
+
color: white;
|
112
|
+
}
|
113
|
+
|
114
|
+
.field-list th {width: 120px; white-space: nowrap;}
|
115
|
+
.field-list td {width: auto;}
|
116
|
+
.field-list .input-help { color: #888;}
|
117
|
+
|
118
|
+
.content-header, .content-body, .content-footer {margin: 0 45px 15px; padding: 0;}
|
119
|
+
.content-header {padding: 5px 0;}
|
120
|
+
.content-body {padding: 15px 0;}
|
121
|
+
.content-footer {padding-bottom: 20px;}
|
122
|
+
|
123
|
+
.page-header {margin-top: 25px; padding: 0 0 0;}
|
124
|
+
.page-header h1 {
|
125
|
+
margin: 0; padding: 20px 30px 30px;
|
126
|
+
font-family: "Arial Black", Tahoma, Arial, sans-serif; font-size: 36px; letter-spacing: -1.5pt;
|
127
|
+
}
|
128
|
+
.page-header ul {zoom: 1; overflow: hidden;}
|
129
|
+
.page-header li {float: left; margin-left: 0; list-style: none;}
|
130
|
+
|
131
|
+
.page-header .navigation a,
|
132
|
+
.page-header .navigation a:hover,
|
133
|
+
.page-header h1 a,
|
134
|
+
.page-header h1 a:hover
|
135
|
+
{border: none; color: white; background: none;}
|
136
|
+
|
137
|
+
.page-header div.search {
|
138
|
+
float: right;
|
139
|
+
padding: 0 30px 8px 15px;
|
140
|
+
}
|
141
|
+
.page-header div.search label {
|
142
|
+
padding-right: 10px;
|
143
|
+
font: bold 9px Arial, sans-serif; text-transform: uppercase; letter-spacing: 1.0pt;
|
144
|
+
}
|
145
|
+
.page-header div.search input {
|
146
|
+
font-size: 10px;
|
147
|
+
}
|
148
|
+
#search-results-panel {
|
149
|
+
position: absolute; top: 35px; right: 25px; z-index: 50;
|
150
|
+
width: 350px; height: 500px; overflow: auto;
|
151
|
+
padding: 0 20px 20px; border: 1px solid #ddd;
|
152
|
+
color: black; background: #f2f2f2;
|
153
|
+
}
|
154
|
+
#search-results-panel .card.linkable a {color: black;}
|
155
|
+
#search-spinner {background:black;border:1px solid #666666;opacity:0.6;padding:2px;position:absolute;right:4px;top:6px;}
|
156
|
+
|
157
|
+
.main-nav {padding: 0 30px;}
|
158
|
+
.main-nav li {margin-right: 10px;}
|
159
|
+
.page-header .main-nav a {
|
160
|
+
display: block;
|
161
|
+
padding: 5px 15px 7px;
|
162
|
+
font-size: 13px; font-weight: bold;
|
163
|
+
}
|
164
|
+
|
165
|
+
.account-nav {
|
166
|
+
float:right;
|
167
|
+
margin: -22px 5px 0 0;
|
168
|
+
font-size: 11px;
|
169
|
+
}
|
170
|
+
.account-nav li {
|
171
|
+
float: left;
|
172
|
+
margin-left: 0; padding-left: 20px;
|
173
|
+
color: #ddd;
|
174
|
+
list-style: none;
|
175
|
+
}
|
176
|
+
.account-nav a {font-weight: bold;}
|
177
|
+
.account-nav a:hover {border-bottom: 1px dotted #ddd;}
|
178
|
+
|
179
|
+
.user-account-page .change-password {width: 350px;}
|
180
|
+
.user-account-page .change-password th {width: 150px;}
|
181
|
+
|
182
|
+
.page-footer {text-align: right; color: #ccc; padding: 5px; font-size: 11px;}
|
183
|
+
|
184
|
+
/* pagination nav, needs a more specific class on the wrapper */
|
185
|
+
.content-body .nav {margin-bottom: 10px; font-size: 11px;}
|
186
|
+
.content-body .nav a {margin-right: 5px;}
|
187
|
+
|
188
|
+
.login-page, .forgot-password-page {width: 470px; margin-top: 40px;}
|
189
|
+
.login-page .content-header {padding-bottom: 0;}
|
190
|
+
.login-page .field-list {width: 370px;}
|
191
|
+
.login-page form .actions {text-align: left; margin: 0; padding: 10px 0 10px 160px;}
|
192
|
+
.signup-page .field-list {width: 370px;}
|
193
|
+
.signup-page .content-body, .signup-page .content-header { margin-left: 120px; margin-right: 120px;}
|
194
|
+
.login-page .field-list td, .signup-page .field-list td {width: auto;}
|
195
|
+
.login-page .field-list th, .signup-page .field-list th {width: 150px !important; width: 150px;}
|
196
|
+
.login-page .content-header { position: relative; }
|
197
|
+
.login-page .forgot-password {font-size: 11px; margin-left: 160px;}
|
198
|
+
|
199
|
+
.edit-page .content-header {overflow: hidden; _zoom: 1;}
|
200
|
+
.edit-page .content-header h1 {float: left;}
|
201
|
+
.edit-page .content-header .delete-button {float: right; margin-top: 25px;}
|
202
|
+
form .actions {margin: 30px 0; width: 100%; text-align: center;}
|
203
|
+
|
204
|
+
.show-page .content-header {position: relative; border-bottom: 1px dotted #888;}
|
205
|
+
.show-page .content-header h1, .new-in-collection-page .content-header h1 {margin-bottom: 2px; margin-right: 70px;}
|
206
|
+
.show-page .content-header a.edit-link {position: absolute; top: 30px; right: 0;}
|
207
|
+
.aside-content .collection {padding-bottom: 10px;}
|
208
|
+
|
209
|
+
.content-header .creation-details {font-size: 11px; line-height: 11px;}
|
210
|
+
.content-header .creator {margin-right: 15px;}
|
211
|
+
.content-header .created-at {color: #444;}
|
212
|
+
|
213
|
+
.new-in-collection-page .content-header h2 {margin-top: 6px; font-size: 14px;}
|
214
|
+
.new-in-collection-page .content-header h2, .new-in-collection-page .content-header h2 a {color: #222;}
|
215
|
+
|
216
|
+
.add-to-collection {padding: 20px 30px; margin-top: 20px;}
|
217
|
+
.collection-section .add-to-collection h3 {margin: 0 0 20px; padding: 0; border-bottom: none;}
|
218
|
+
.add-to-collection form .submit-button {margin: 20px 130px;}
|
219
|
+
.add-to-collection .actions {text-align: left; margin-top: 0; margin-bottom: 0;}
|
220
|
+
|
221
|
+
/* styling of generic elements */
|
222
|
+
.creator {font-weight: bold;}
|
223
|
+
.card {
|
224
|
+
overflow: hidden; _zoom: 1;
|
225
|
+
margin: 10px 0; padding: 12px; border: 1px solid #e8e8e8;
|
226
|
+
background: #f5f5f5;
|
227
|
+
position: relative;
|
228
|
+
}
|
229
|
+
.card h4 {margin-top: 0;}
|
230
|
+
.card a {background: #f5f5f5;}
|
231
|
+
.card .creation-details {
|
232
|
+
display: block; color: #333; font-size: 11px;
|
233
|
+
}
|
234
|
+
.card .datetime {color: #666;}
|
235
|
+
.card .actions { position:absolute; right: 10px; top: 10px; }
|
236
|
+
div.ordering-handle { float: left; background: #ccc; color: white; margin-right: 5px; cursor: move; padding: 0 2px;}
|
237
|
+
|
238
|
+
.card.content.with-owner {
|
239
|
+
padding: 0; margin: 10px 0 30px; border: none;
|
240
|
+
background: none;
|
241
|
+
font-size: 11px;
|
242
|
+
}
|
243
|
+
.card.content .creation-details {
|
244
|
+
float: left; width: 28%;
|
245
|
+
line-height: 14px;
|
246
|
+
}
|
247
|
+
.card.content .creation-details .created-at {display: block;}
|
248
|
+
.card.content.with-owner .content {
|
249
|
+
float: right; width: 72%;
|
250
|
+
}
|
251
|
+
ul.collection > li { margin-left: 0; list-style: none;}
|
252
|
+
.empty-collection-message {margin-top: 20px;}
|
253
|
+
|
254
|
+
.new-link {margin-top: 20px;}
|
255
|
+
|
256
|
+
.collection-section h3 {
|
257
|
+
padding: 15px 0; margin-bottom: 20px; border-bottom: 1px dotted #888;
|
258
|
+
}
|
259
|
+
|
260
|
+
.table-plus .header {_zoom: 1; overflow: hidden;}
|
261
|
+
.table-plus .header a {float: left; margin-right: 20px;}
|
262
|
+
.table-plus div.search {float: right;}
|
263
|
+
.table-plus div.search span {color: #444;}
|
264
|
+
.table-plus div.search input.search {margin: 0 5px;}
|
265
|
+
.table-plus div.search .button {padding: 2px 4px;}
|
266
|
+
|
267
|
+
.table-plus table {width: 100%; margin: 20px 0;}
|
268
|
+
.table-plus table th {
|
269
|
+
padding: 2px 10px;
|
270
|
+
color: white; background: #444;
|
271
|
+
font-weight: bold; font-size: 10px;
|
272
|
+
}
|
273
|
+
.table-plus table th a {color: white;}
|
274
|
+
.table-plus table td {
|
275
|
+
padding: 6px 10px; border-bottom: 1px solid #e2e2e2; color: #666;
|
276
|
+
}
|
277
|
+
.table-plus table td input.button, .collection .button {padding: 1px 3px; margin-left: 10px; margin-top: 0;}
|
278
|
+
.table-plus table td.controls {width: 100px;}
|
279
|
+
.table-plus .even {background: #f8f8f8;}
|
280
|
+
.table-plus a {background: none;}
|
281
|
+
|
282
|
+
/* <select-many> */
|
283
|
+
|
284
|
+
div.select-many {border-top: 1px dotted #999;}
|
285
|
+
div.select-many .items {margin-bottom: 10px;}
|
286
|
+
div.select-many .item {
|
287
|
+
overflow:hidden; _zoom: 1; font-weight: bold;
|
288
|
+
border-bottom: 1px dotted #999; padding: 5px 10px; /*margin: 5px 25px 5px 0;*/
|
289
|
+
}
|
290
|
+
div.select-many .item span { float: left; }
|
291
|
+
div.select-many .item .remove-item { float: right; }
|
292
|
+
|
293
|
+
/* <live-search> */
|
294
|
+
|
295
|
+
#search-results-panel { postition: relative; }
|
296
|
+
#search-results-panel .close-button { cursor: pointer; text-decoration: underline; position: absolute; top: 3px; right: 6px;}
|
297
|
+
|
298
|
+
/*******************************************************/
|
299
|
+
/* these styles are for the generated front index page */
|
300
|
+
/* you can delete them if you over-ride it */
|
301
|
+
|
302
|
+
.front-page .welcome-message {
|
303
|
+
padding: 10px 20px 20px; border: 1px solid #e8e8e8;
|
304
|
+
color: #222;
|
305
|
+
background: url(../images/50-ACD3E6-fff.png) repeat-x #fff;
|
306
|
+
}
|
307
|
+
.front-page .welcome-message h2 {
|
308
|
+
font-size: 18px; line-height: 27px;
|
309
|
+
}
|
310
|
+
.front-page ul.models li {margin-left: 0; list-style: none;}
|
311
|
+
|
312
|
+
ul.input-many {list-style-type: none;}
|
313
|
+
ul.input-all {list-style-type: none;}
|
314
|
+
|
315
|
+
ul.input-many > li { overflow:hidden; zoom:1;}
|
316
|
+
ul.input-many .input-many-item {float:left;}
|
317
|
+
ul.input-many div.buttons {float:left; margin-left:10px;}
|
318
|
+
li.input-many-template { display:none; }
|
319
|
+
|
320
|
+
ul.check-many { list-style-type: none; margin-left: 0px;}
|
321
|
+
ul.check-many li input { vertical-align: -20%;}
|
322
|
+
|
323
|
+
/* rapid-summary */
|
324
|
+
table.app-summary { border: 1px solid; border-collapse: collapse; }
|
325
|
+
table.app-summary td { padding: 2px; border: 1px dotted #bbb; }
|
326
|
+
table.app-summary th { padding: 2px; border-bottom: 1px solid; background: #acd3e6; }
|
@@ -0,0 +1,100 @@
|
|
1
|
+
.hidden {display: none;}
|
2
|
+
|
3
|
+
.in-place-textfield-bhv, .in-place-textarea-bhv, .in-place-html-textarea-bhv {
|
4
|
+
border: 1px dotted #666;
|
5
|
+
padding: 0 3px; padding-right: 20px;
|
6
|
+
background-image: url(../images/pencil.png);
|
7
|
+
background-position: top right;
|
8
|
+
background-repeat: no-repeat;
|
9
|
+
}
|
10
|
+
|
11
|
+
.inplaceeditor-form input, .inplaceeditor-form textarea,
|
12
|
+
table.new-record textarea, table.new-record input {
|
13
|
+
border: 1px dotted #666;
|
14
|
+
padding: 3px; width: 100%;
|
15
|
+
}
|
16
|
+
.inplaceeditor-form, .inplaceeditor-form input {
|
17
|
+
display: inline;
|
18
|
+
}
|
19
|
+
|
20
|
+
/**** Admin ****/
|
21
|
+
|
22
|
+
.admin-banner {
|
23
|
+
background: #9d0018; border-top: 2px solid #7a0013; border-bottom: 2px solid #7a0013;
|
24
|
+
padding: 2px 0;
|
25
|
+
margin: 10px 0;
|
26
|
+
}
|
27
|
+
.admin-banner p, .admin-banner span {
|
28
|
+
font: 12px "Lucida Grande", Arial, sans-serif;
|
29
|
+
}
|
30
|
+
.admin-banner p, .admin-banner div {margin-bottom: 0;}
|
31
|
+
.admin-banner a {color: white; text-decoration: none; padding: 1px 5px; font-weight: bold;}
|
32
|
+
.admin-banner a:hover {color: #9d0018; background: white;}
|
33
|
+
.admin-banner .logged-in {
|
34
|
+
float: right;
|
35
|
+
}
|
36
|
+
|
37
|
+
/********* everything below here came from hobo_rapid.css, needs looking at ********/
|
38
|
+
|
39
|
+
/**** Default styling for Rapid ***/
|
40
|
+
|
41
|
+
#ajax-progress {
|
42
|
+
float: right; margin: 20px;
|
43
|
+
position: fixed; display: none; z-index: 10;
|
44
|
+
}
|
45
|
+
|
46
|
+
/* Scriptaculous Autocompleter ---*/
|
47
|
+
|
48
|
+
div.completions-popup {
|
49
|
+
position:absolute;
|
50
|
+
width:250px;
|
51
|
+
background-color:white;
|
52
|
+
border:1px solid #888;
|
53
|
+
margin:0px;
|
54
|
+
padding:0px;
|
55
|
+
}
|
56
|
+
div.completions-popup ul {
|
57
|
+
list-style-type:none;
|
58
|
+
margin:0px;
|
59
|
+
padding:0px;
|
60
|
+
}
|
61
|
+
div.completions-popup ul li.selected { background-color: #ffb;}
|
62
|
+
div.completions-popup ul li {
|
63
|
+
list-style-type:none;
|
64
|
+
display:block;
|
65
|
+
margin:0;
|
66
|
+
padding:2px;
|
67
|
+
cursor:pointer;
|
68
|
+
}
|
69
|
+
|
70
|
+
|
71
|
+
.field-list {width:100%;}
|
72
|
+
.field-list td {vertical-align: middle;}
|
73
|
+
.field-list th {font-weight: bold;}
|
74
|
+
.field-list th, .field-list td {padding: 5px 0;}
|
75
|
+
.field-list th {padding-right: 10px;}
|
76
|
+
|
77
|
+
.field-list td.field-label {
|
78
|
+
text-align: left; width: 1px; white-space: nowrap; vertical-align: top;
|
79
|
+
padding-top: 10px; padding-bottom: 10px;
|
80
|
+
}
|
81
|
+
.field-list textarea, .field-list input[type=text], .field-list input[type=password] { width: 99%; margin: 0; }
|
82
|
+
|
83
|
+
/*input[type=text].wide { width: 100%; }*/
|
84
|
+
textarea { height: 170px; }
|
85
|
+
textarea.wide { width: 100%; }
|
86
|
+
textarea.tall { height: 350px; }
|
87
|
+
|
88
|
+
.field-list input.percentage {width: 25px; display: inline; margin-right: 5px; padding: 1px 3px;}
|
89
|
+
|
90
|
+
select.dev-user-changer { opacity: 0.3; }
|
91
|
+
select.dev-user-changer:hover { opacity: 1; }
|
92
|
+
|
93
|
+
.part-wrapper {
|
94
|
+
display: inline; /* don't mess up layout when wrapping something */
|
95
|
+
}
|
96
|
+
|
97
|
+
optgroup.disabled-option {
|
98
|
+
color: #ccc;
|
99
|
+
height: 1em;
|
100
|
+
}
|