orange-sparkles 0.5.7 → 0.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 David Haslem
1
+ Copyright (c) 2009 Orange Sparkle Ball, inc.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.rdoc CHANGED
@@ -18,4 +18,4 @@ complicated with the views and custom css/templates (which you probably do).
18
18
 
19
19
  == Copyright
20
20
 
21
- Copyright (c) 2010 David Haslem. See LICENSE for details.
21
+ Copyright (c) 2010 Orange Sparkle Ball, inc. See LICENSE for details.
@@ -105,6 +105,7 @@ body#members a#members-tab
105
105
  #page-content {
106
106
  margin: 0 auto;
107
107
  padding: 0 43px 48px;
108
+ z-index: 1;
108
109
  }
109
110
  br.clearfix {
110
111
  clear:both;
@@ -176,6 +177,7 @@ div#current-site-header {
176
177
  text-align: center;
177
178
  width: 100%;
178
179
  position: fixed;
180
+ z-index: 100;
179
181
  }
180
182
 
181
183
  /* Login Styles */
@@ -36,11 +36,11 @@ class Orange::SparklesApp < Orange::Application
36
36
  orange.fire(:view_admin, packet)
37
37
  'sparkles-admin.haml'
38
38
  elsif(packet['route.path'] == '/')
39
- packet.add_js('jquery-1.4.1.min.js', :module => '_sparkles_')
39
+ # packet.add_js('jquery-1.4.1.min.js', :module => '_sparkles_')
40
40
  ['reset', '960_24_col', 'text', 'main'].each{|c| packet.add_css("#{c}.css", :module => '_sparkles_')}
41
41
  'home.haml'
42
42
  else
43
- packet.add_js('jquery-1.4.1.min.js', :module => '_sparkles_')
43
+ # packet.add_js('jquery-1.4.1.min.js', :module => '_sparkles_')
44
44
  ['reset', '960_24_col', 'text', 'main'].each{|c| packet.add_css("#{c}.css", :module => '_sparkles_')}
45
45
  'subpage.haml'
46
46
  end
@@ -1,18 +1,20 @@
1
1
  !!! 5
2
2
  %html{:lang => "en"}
3
3
  %head
4
- %title Orange Site
4
+ %title= packet['site'] ? packet['site'].name : "Orange Site"
5
5
  %meta{:charset => "utf-8"}
6
+ /[if lt IE 9]
7
+ %script{:src => "http://html5shiv.googlecode.com/svn/trunk/html5.js"}
8
+ /
9
+ %script{:src => "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"}
6
10
  -# CSS
7
11
  = part[:css]
8
12
  = part[:js]
9
- /[if lt IE 9]
10
- %script{:src => "http://html5shiv.googlecode.com/svn/trunk/html5.js"}
11
13
  %body#home
12
14
  .container.container_24
13
15
  %header.head
14
16
  .logo
15
- %h1 Orange Site
17
+ %h1= packet['site'] ? packet['site'].name : "Orange Site"
16
18
  %nav.clearfix
17
19
  = orange[:sitemap].two_level(packet)
18
20
  %br.clear
@@ -17,14 +17,15 @@
17
17
  |
18
18
  %a{:href => route_to(:orange_sites, packet["site"].id, "edit")} Site Settings
19
19
  %div#current-site-header
20
- %span Current Site:
20
+ %span Currently editing:
21
21
  %br
22
- %select{:id => "site-selector"}
23
- - for site in packet["user"].orange_sites
24
- %option{:value => (!site.is_a?(OrangeSubsite) ? "/admin/sitemap" : "/admin#{orange[:subsites].url_for(packet, site)}sitemap"), :selected => (packet['subsite', false] ? site == packet['subsite'] : site == packet['site'])}= site.name
22
+ %a.orange-text{:href => "/"}= packet['site'].name
25
23
  %div.tab-container
26
24
  / %a.tab#home-tab{:href => "#"} Home
27
25
  %a.tab#sitemap-tab{:href => route_to(:sitemap)} Pages
26
+ - for link in (orange[:admin].links(packet)["tabs"] || [])
27
+ %style= "body##{link[:resource]} a##{link[:resource]}-tab{ background: #999999;}"
28
+ %a.tab{:id => "#{link[:resource]}-tab", :href => route_to(link[:resource])}= link[:text]
28
29
  %div#subheader
29
30
  %h1
30
31
  %img.subhead-icon{:src => "/assets/_sparkles_/images/edit.png", :width => "23", :height => "22", :alt => "Pages icon"}
@@ -4,7 +4,6 @@
4
4
  - if model
5
5
  %form{:action => route_to(model_name, model[:id], 'save'), :method => 'post'}
6
6
  - for prop in props
7
- - next unless [:show_ads, :linked_in_group, :vimeo_page, :spreedly_on].include? prop[:name]
8
7
  %p~ view_attribute(prop, model_name, :label => true, :value => model.attribute_get(prop[:name]))
9
8
  %input{:type => 'submit', :value => 'Save Changes'}
10
9
  %br.clearfix
@@ -1,20 +1,6 @@
1
1
  %h2 Code Slices
2
2
  %hr
3
3
  .slice-list
4
- %p
5
- %label Event Calendars:
6
- %select.calendar
7
- %option{} Choose a calendar to insert
8
- - for cal in OrangeCalendar.all
9
- %option{:value => cal.name}= cal.name
10
- %br
11
- %p
12
- %label Contact Forms:
13
- %select.contact
14
- %option{} Choose a form to insert
15
- - for form in OrangeContactForms.all
16
- %option{:value => form.title}= form.title
17
- %br
18
4
  %p
19
5
  %label Links:
20
6
  %select.link
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orange-sparkles
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 5
9
- - 7
10
- version: 0.5.7
8
+ - 8
9
+ version: 0.5.8
11
10
  platform: ruby
12
11
  authors:
13
12
  - David Haslem
@@ -15,18 +14,16 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-07-08 00:00:00 -04:00
17
+ date: 2010-08-18 00:00:00 -04:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: orange-core
23
22
  prerelease: false
24
23
  requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
24
  requirements:
27
25
  - - ">="
28
26
  - !ruby/object:Gem::Version
29
- hash: 5
30
27
  segments:
31
28
  - 0
32
29
  - 5
@@ -38,11 +35,9 @@ dependencies:
38
35
  name: orange-more
39
36
  prerelease: false
40
37
  requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
38
  requirements:
43
39
  - - ">="
44
40
  - !ruby/object:Gem::Version
45
- hash: 5
46
41
  segments:
47
42
  - 0
48
43
  - 5
@@ -54,11 +49,9 @@ dependencies:
54
49
  name: maruku
55
50
  prerelease: false
56
51
  requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
52
  requirements:
59
53
  - - ">="
60
54
  - !ruby/object:Gem::Version
61
- hash: 3
62
55
  segments:
63
56
  - 0
64
57
  version: "0"
@@ -68,17 +61,15 @@ dependencies:
68
61
  name: rack-abstract-format
69
62
  prerelease: false
70
63
  requirement: &id004 !ruby/object:Gem::Requirement
71
- none: false
72
64
  requirements:
73
65
  - - ">="
74
66
  - !ruby/object:Gem::Version
75
- hash: 3
76
67
  segments:
77
68
  - 0
78
69
  version: "0"
79
70
  type: :runtime
80
71
  version_requirements: *id004
81
- description: "This gem is a "
72
+ description: This gem is a CMS theme for orange
82
73
  email: therabidbanana@gmail.com
83
74
  executables: []
84
75
 
@@ -319,8 +310,6 @@ files:
319
310
  - lib/orange-sparkles/views/sitemap/one_level.haml
320
311
  - lib/orange-sparkles/views/sitemap/route_actions.haml
321
312
  - lib/orange-sparkles/views/sitemap/table_row.haml
322
- - lib/orange-sparkles/views/slices/footer.haml
323
- - lib/orange-sparkles/views/slices/header.haml
324
313
  - lib/orange-sparkles/views/slices/lorem.haml
325
314
  - lib/orange-sparkles/views/slices/slice_helper.haml
326
315
  - lib/orange-sparkles/views/users/create.haml
@@ -337,27 +326,23 @@ rdoc_options:
337
326
  require_paths:
338
327
  - lib
339
328
  required_ruby_version: !ruby/object:Gem::Requirement
340
- none: false
341
329
  requirements:
342
330
  - - ">="
343
331
  - !ruby/object:Gem::Version
344
- hash: 3
345
332
  segments:
346
333
  - 0
347
334
  version: "0"
348
335
  required_rubygems_version: !ruby/object:Gem::Requirement
349
- none: false
350
336
  requirements:
351
337
  - - ">="
352
338
  - !ruby/object:Gem::Version
353
- hash: 3
354
339
  segments:
355
340
  - 0
356
341
  version: "0"
357
342
  requirements: []
358
343
 
359
344
  rubyforge_project:
360
- rubygems_version: 1.3.7
345
+ rubygems_version: 1.3.6
361
346
  signing_key:
362
347
  specification_version: 3
363
348
  summary: Adding some prettiness to orange-core
@@ -1,17 +0,0 @@
1
- .newsletter.grid_22.prefix_1.suffix_1
2
- .grid_16.alpha
3
- %form{:action => route_to(:members, :register)}
4
- %p
5
- %label Sign up for our newsletter:
6
- %input{:name => 'email'}
7
- %input{:type => "submit", :value => "Sign Up"}
8
- .grid_5.prefix_1.omega
9
- %p.members
10
- Log in:
11
- %a{:href => route_to(:members, :login)} Participant
12
- = '|'
13
- %a{:href => route_to(:sitemap, :context => "admin")} Admin
14
- %footer.foot
15
- %p.copyright
16
- All Content &copy; #{Time.now.strftime('%Y')} |
17
- WNSF - Women's Network for a Sustainable Future |
@@ -1,17 +0,0 @@
1
- %nav.clearfix
2
- .breadcrumb.grid_15.suffix_1.alpha
3
- = orange[:sitemap].breadcrumb(packet)
4
- %section.social_buttons.grid_6.omega
5
- %header.grid_2.prefix_1.alpha
6
- %h1 Follow us:
7
- %ul.grid_3.omega
8
- %li
9
- %a{:href => "http://www.twitter.com/wnsf2009"}
10
- %img{:src => '/assets/_sparkles_/images/twitter_sticker_small.png'}
11
- %li
12
- %a{:href => "http://www.facebook.com/pages/WNSF/134628901298"}
13
- %img{:src => '/assets/_sparkles_/images/facebook_sticker_small.png'}
14
- - unless packet['site'].vimeo_page.blank?
15
- %li
16
- %a{:href => packet['site'].vimeo_page}
17
- %img{:src => '/assets/_sparkles_/images/vimeo_sticker_small.png'}