News pages working.
Sponsorship ... getting there.
This commit is contained in:
		
							parent
							
								
									e4679c7cb8
								
							
						
					
					
						commit
						5347a7efae
					
				
					 12 changed files with 68 additions and 50 deletions
				
			
		
							
								
								
									
										4
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							|  | @ -4,7 +4,11 @@ node_modules/ | ||||||
| _build/ | _build/ | ||||||
| .DS_Store | .DS_Store | ||||||
| dev.db | dev.db | ||||||
|  | *.pg | ||||||
| .coverage | .coverage | ||||||
| pinaxcon/site_media/ | pinaxcon/site_media/ | ||||||
| local_settings.py | local_settings.py | ||||||
| log | log | ||||||
|  | 
 | ||||||
|  | \.#* | ||||||
|  | *#*# | ||||||
|  |  | ||||||
|  | @ -245,13 +245,9 @@ DEBUG_TOOLBAR_PANELS = [ | ||||||
|     'debug_toolbar.panels.redirects.RedirectsPanel', |     'debug_toolbar.panels.redirects.RedirectsPanel', | ||||||
| ] | ] | ||||||
| 
 | 
 | ||||||
| # To use the debug toolbar on a "remote" site (i.e., not on localhost) change  |  | ||||||
| # SHOW_TOOLBAR_CALLBACK's definition, below, to return True, rather than False. |  | ||||||
| # If you're using this on a local(host) for development, there's no need to |  | ||||||
| # change it so long as DEBUG (above) is defined as True. |  | ||||||
| DEBUG_TOOLBAR_CONFIG = { | DEBUG_TOOLBAR_CONFIG = { | ||||||
|     'INTERCEPT_REDIRECTS': False, |     'INTERCEPT_REDIRECTS': False, | ||||||
|     'SHOW_TOOLBAR_CALLBACK': lambda x: False, |     'SHOW_TOOLBAR_CALLBACK': lambda x: True, | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| LOGGING = { | LOGGING = { | ||||||
|  |  | ||||||
|  | @ -19,22 +19,12 @@ | ||||||
| {% block header_inset_image %}{% endblock %} | {% block header_inset_image %}{% endblock %} | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
| <div class="container"> |     <div id="announcements" class="jumbotron-white"> | ||||||
|     <div class="row"> |         <h1>{{ page.title }}</h1> | ||||||
|         <div class="col-md-1">xxx</div> |         <p>{{ page.intro }}</p> | ||||||
|         <div class="col-md-10" > |         <span>{{ page.body }}</span> | ||||||
|             <div id="announcements" class="jumbotron-white"> |  | ||||||
|                 <h1>{{ page.title }}</h1> |  | ||||||
|                 <p>{{ page.intro }}</p> |  | ||||||
|                 <span>{{ page.body }}</span> |  | ||||||
|             </div> |  | ||||||
|         </div> |  | ||||||
|         <div class="col-md-1"> |  | ||||||
|             <div id="sponsors" class="wrapper jumbotron-white"> |  | ||||||
|                 <h4>Sponsors</h4> |  | ||||||
|                 {% include "symposion/sponsorship/_vertical_by_level.html" %} |  | ||||||
|             </div> |  | ||||||
|         </div> |  | ||||||
|     </div> |     </div> | ||||||
| </div> |     {% block content_base %} | ||||||
|  |     {% endblock %} | ||||||
| {% endblock %} | {% endblock %} | ||||||
|  | 
 | ||||||
|  |  | ||||||
|  | @ -17,14 +17,16 @@ | ||||||
| {% block content_base %} | {% block content_base %} | ||||||
|   {% if page.child_pages %} |   {% if page.child_pages %} | ||||||
|     {% for item in page.child_pages %} |     {% for item in page.child_pages %} | ||||||
|       <div class="panel panel__compact"> |       <div class="panel panel__compact jumbotron-white"> | ||||||
|         <div class="panel--content"> |         <div class="panel--content"> | ||||||
|  |         {% comment %} | ||||||
|           <div class="panel--1-3"> |           <div class="panel--1-3"> | ||||||
|             <div class="portrait"> |             <div class="portrait"> | ||||||
|               {% image item.portrait_image width-640 as portrait_image %} |               {% image item.portrait_image width-640 as portrait_image %} | ||||||
|               <div style="background-image: url('{{ portrait_image.url }}');" class="portrait--img"></div> |               <div style="background-image: url('{{ portrait_image.url }}');" class="portrait--img"></div> | ||||||
|             </div> |             </div> | ||||||
|           </div> |           </div> | ||||||
|  |           {% endcomment %} | ||||||
|           <div class="panel--2-3"> |           <div class="panel--2-3"> | ||||||
|             <h2>{{ item.title }}</h2> |             <h2>{{ item.title }}</h2> | ||||||
|             <p class="lede"><em>{{ item.date|date:"j F Y" }}</em> – {{ item.intro }}</p> |             <p class="lede"><em>{{ item.date|date:"j F Y" }}</em> – {{ item.intro }}</p> | ||||||
|  | @ -36,7 +38,7 @@ | ||||||
|     <div class="panel panel__compact"></div> |     <div class="panel panel__compact"></div> | ||||||
|   {% endif %} |   {% endif %} | ||||||
| 
 | 
 | ||||||
|   <div class="panel panel__compact"> |   <div class="panel panel__compact jumbotron"> | ||||||
|     <div class="panel--content"> |     <div class="panel--content"> | ||||||
|       <h3>Subscribe</h3> |       <h3>Subscribe</h3> | ||||||
|       <p><a class="btn" href="rss">View as RSS</a></p> |       <p><a class="btn" href="rss">View as RSS</a></p> | ||||||
|  |  | ||||||
|  | @ -15,6 +15,9 @@ | ||||||
| {% endif %} | {% endif %} | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
|  |     <div id="announcements" class="jumbotron-white"> | ||||||
|  | 
 | ||||||
|   <p><em>{{ page.date|date:"j F Y" }}</em></p> |   <p><em>{{ page.date|date:"j F Y" }}</em></p> | ||||||
|   {{ page.body }} |   {{ page.body }} | ||||||
|  |   </div> | ||||||
| {% endblock %} | {% endblock %} | ||||||
|  |  | ||||||
|  | @ -23,7 +23,7 @@ | ||||||
| {% available_categories as categories %} | {% available_categories as categories %} | ||||||
| {% if categories %} | {% if categories %} | ||||||
|   <div class="panel panel__compact panel__bg panel__last"> |   <div class="panel panel__compact panel__bg panel__last"> | ||||||
|     <div style="background-image: url('{% static "pyconau2017/images/wp_bg_optimised.jpg" %}');" class="panel--bg"></div> |     <!-- div style="background-image: url('{% static "pyconau2017/images/wp_bg_optimised.jpg" %}');" class="panel--bg"></div --> | ||||||
|     <div class="panel--content"> |     <div class="panel--content"> | ||||||
|       <div > |       <div > | ||||||
|         <h2>{% trans "Attend" %} {% conference_name %}</h2> |         <h2>{% trans "Attend" %} {% conference_name %}</h2> | ||||||
|  | @ -115,7 +115,7 @@ | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| <div class="panel panel__compact panel__bg panel__last"> | <div class="panel panel__compact panel__bg panel__last"> | ||||||
|   <div style="background-image: url('{% static "pyconau2017/images/hobart_bg_optimised.jpg" %}');" class="panel--bg"></div> |   <!-- div style="background-image: url('{% static "pyconau2017/images/hobart_bg_optimised.jpg" %}');" class="panel--bg"></div--> | ||||||
|   <div class="panel--content"> |   <div class="panel--content"> | ||||||
|     <div class="panel--2-3"> |     <div class="panel--2-3"> | ||||||
|       <h2>{% trans "Speaking and Miniconfs" %}</h2> |       <h2>{% trans "Speaking and Miniconfs" %}</h2> | ||||||
|  | @ -204,7 +204,7 @@ | ||||||
| {% if review_sections %} | {% if review_sections %} | ||||||
| 
 | 
 | ||||||
|   <div class="panel panel__compact panel__bg panel__last"> |   <div class="panel panel__compact panel__bg panel__last"> | ||||||
|     <div style="background-image: url('{% static "pyconau2017/images/conference_bg_optimised.jpg" %}');" class="panel--bg"></div> |     <!-- div style="background-image: url('{% static "pyconau2017/images/conference_bg_optimised.jpg" %}');" class="panel--bg"></div--> | ||||||
|     <div class="panel--content"> |     <div class="panel--content"> | ||||||
|       <div class="panel--2-3"> |       <div class="panel--2-3"> | ||||||
|         <h2>{% trans "Reviews" %}</h2> |         <h2>{% trans "Reviews" %}</h2> | ||||||
|  | @ -232,8 +232,8 @@ | ||||||
| 
 | 
 | ||||||
| {% available_teams as available_teams %} | {% available_teams as available_teams %} | ||||||
| {% if user.memberships.exists or available_teams %} | {% if user.memberships.exists or available_teams %} | ||||||
|     <div class="panel panel__compact panel__bg"> |     <!-- div class="panel panel__compact panel__bg"> | ||||||
|       <div style="background-image: url('{% static "pyconau2017/images/hobart_bg_optimised.jpg" %}');" class="panel--bg"></div> |       <div style="background-image: url('{% static "pyconau2017/images/hobart_bg_optimised.jpg" %}');" class="panel--bg"></div--> | ||||||
|       <div class="panel--content"> |       <div class="panel--content"> | ||||||
|         <div class="panel--2-3"> |         <div class="panel--2-3"> | ||||||
|           <h2>{% trans "Teams" %}</h2> |           <h2>{% trans "Teams" %}</h2> | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ | ||||||
| {% load sitetree %} | {% load sitetree %} | ||||||
| {# <!-- https://gist.github.com/geedmo/5682742--> #} | {# <!-- https://gist.github.com/geedmo/5682742--> #} | ||||||
| <!DOCTYPE html> | <!DOCTYPE html> | ||||||
| <html lang="en" class="no-js" manifest="{% static 'pyconau2017/manifest.appcache' %}"> | <html lang="en" class="no-js" manifest="{% static 'manifest.appcache' %}"> | ||||||
|   <head> |   <head> | ||||||
|     <meta charset="utf-8"> |     <meta charset="utf-8"> | ||||||
|     <meta http-equiv="X-UA-Compatible" content="IE=edge"> |     <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||||
|  | @ -21,7 +21,7 @@ | ||||||
|       <link rel="stylesheet" href="{% static 'pyconau2017/css/app.css' %}"> |       <link rel="stylesheet" href="{% static 'pyconau2017/css/app.css' %}"> | ||||||
|       <link rel="stylesheet" href="{% static 'pyconau2017/css/print.css' %}" media="print"> |       <link rel="stylesheet" href="{% static 'pyconau2017/css/print.css' %}" media="print"> | ||||||
|       <link href="{% static 'pyconau2017/css/pyconau.css' %}" rel="stylesheet"> |       <link href="{% static 'pyconau2017/css/pyconau.css' %}" rel="stylesheet"> | ||||||
|       <link href="{% static 'pyconau2017/css/pyconau2016.css' %}" rel="stylesheet"> |       <!-- link href="{% static 'pyconau2017/css/pyconau2016.css' %}" rel="stylesheet" --> | ||||||
| 
 | 
 | ||||||
|       <link rel="icon" href="{% static 'pyconau2017/images/favicon.png' %}"> |       <link rel="icon" href="{% static 'pyconau2017/images/favicon.png' %}"> | ||||||
| 
 | 
 | ||||||
|  | @ -66,8 +66,21 @@ | ||||||
|         <!--main role="main"--> |         <!--main role="main"--> | ||||||
|         <!-- site_base block body --> |         <!-- site_base block body --> | ||||||
|         {% block body %} |         {% block body %} | ||||||
|           {% block content %} |           <div class="container"> | ||||||
|           {% endblock %} |               <div class="row"> | ||||||
|  |                   <div class="col-md-1"></div> | ||||||
|  |                   <div class="col-md-10" > | ||||||
|  |                     {% block content %} | ||||||
|  |                     {% endblock %} | ||||||
|  |                   </div> | ||||||
|  |                   <div class="col-md-1"> | ||||||
|  |                       <div id="sponsors" class="wrapper jumbotron-white"> | ||||||
|  |                           <h4>Sponsors</h4> | ||||||
|  |                           {% include "symposion/sponsorship/_vertical_by_level.html" %} | ||||||
|  |                       </div> | ||||||
|  |                   </div> | ||||||
|  |               </div> | ||||||
|  |           </div> | ||||||
|         {% endblock %} |         {% endblock %} | ||||||
|         <!-- site_base endblock body --> |         <!-- site_base endblock body --> | ||||||
|         <!--/main--> |         <!--/main--> | ||||||
|  |  | ||||||
|  | @ -2,10 +2,11 @@ | ||||||
| {% extends "site_base.html" %} | {% extends "site_base.html" %} | ||||||
| {% load staticfiles %} | {% load staticfiles %} | ||||||
| {% block extra_style %}{% endblock %} | {% block extra_style %}{% endblock %} | ||||||
|  | 
 | ||||||
|  | {% comment %} | ||||||
| {% block body_base %} | {% block body_base %} | ||||||
|    {% comment %} |  | ||||||
|     {% include "_messages.html" %} |     {% include "_messages.html" %} | ||||||
|     {% endcomment %} | 
 | ||||||
|     <!-- site_base_wagtail.html block body --> |     <!-- site_base_wagtail.html block body --> | ||||||
|     {% block body %} |     {% block body %} | ||||||
|       <!-- begin content --> |       <!-- begin content --> | ||||||
|  | @ -15,6 +16,7 @@ | ||||||
|     {% endblock %} |     {% endblock %} | ||||||
|     <!-- site_base_wagtail.html enblock body --> |     <!-- site_base_wagtail.html enblock body --> | ||||||
| {% endblock %} | {% endblock %} | ||||||
|  | {% endcomment %} | ||||||
| 
 | 
 | ||||||
| {% block scripts %} | {% block scripts %} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -20,7 +20,12 @@ | ||||||
|             <input class="btn btn-primary" type="submit" value="Apply" /> |             <input class="btn btn-primary" type="submit" value="Apply" /> | ||||||
|             <a class="btn btn-default" href="{% url "dashboard" %}">Cancel</a> |             <a class="btn btn-default" href="{% url "dashboard" %}">Cancel</a> | ||||||
|             <p class="help-block"> |             <p class="help-block"> | ||||||
|                 <small>By submitting this sponsor application you are agreeing to the <a href="{% url "pages_page" "sponsor/terms/" %}" target="_blank">terms and conditions</a>.</small> |                 <small>By submitting this sponsor application you are agreeing to the | ||||||
|  |  {% comment %} | ||||||
|  |                  <a href="{% url "pages_page" "sponsor/terms/" %}" target="_blank">terms and conditions</a>. | ||||||
|  |             {% endcomment %} | ||||||
|  |             </small> | ||||||
|  | 
 | ||||||
|             </p> |             </p> | ||||||
|         </div> |         </div> | ||||||
|     </form> |     </form> | ||||||
|  |  | ||||||
|  | @ -1,16 +1,19 @@ | ||||||
| {% extends "site_base.html" %} | {% extends "site_base.html" %} | ||||||
| 
 | 
 | ||||||
| {% load sponsorship_tags %} | {% load sponsorship_tags %} | ||||||
| {% load thumbnail %} | {% load pyconau2017_tags %} | ||||||
| {% load i18n %} | {% load i18n %} | ||||||
| 
 | 
 | ||||||
| {% block head_title %}{% trans "About Our Sponsors" %}{% endblock %} | {% block head_title %}{% trans "About Our Sponsors" %}{% endblock %} | ||||||
| 
 | 
 | ||||||
| {% block body_class %}sponsorships{% endblock %} | {% block body_class %}sponsorships{% endblock %} | ||||||
| 
 | 
 | ||||||
| {% block body_outer %} | {% block content %} | ||||||
|  |     <div class="jumbotron-white" id="sponsors" style="width: 100%;"> | ||||||
|     <h1>{% trans "About Our Sponsors" %}</h1> |     <h1>{% trans "About Our Sponsors" %}</h1> | ||||||
|  |     {% comment %} | ||||||
|     <a href="{% url "pages_page" "sponsors/prospectus/" %}" class="btn">Learn how to become a sponsor <span class="arrow"></span></a> |     <a href="{% url "pages_page" "sponsors/prospectus/" %}" class="btn">Learn how to become a sponsor <span class="arrow"></span></a> | ||||||
|  |     {% endcomment %} | ||||||
| 
 | 
 | ||||||
|     {% sponsor_levels as levels %} |     {% sponsor_levels as levels %} | ||||||
|     {% for level in levels %} |     {% for level in levels %} | ||||||
|  | @ -18,16 +21,16 @@ | ||||||
|             <h3>{{ level.name }}</h3> |             <h3>{{ level.name }}</h3> | ||||||
| 
 | 
 | ||||||
|             {% for sponsor in level.sponsors %} |             {% for sponsor in level.sponsors %} | ||||||
|                 {% if sponsor.website_logo %} |                 {% if sponsor.sponsor_logo %} | ||||||
|                     <div class="row"> |                     <div class="row"> | ||||||
|                         <div class="col-md-2"> |                         <div class="col-md-2"> | ||||||
|                             <h2> |                             <h2> | ||||||
|                                 <a href="{{ sponsor.external_url }}"> |                                 <a href="{{ sponsor.external_url }}"> | ||||||
|                                     <img src="{% thumbnail sponsor.website_logo '150x80' %}" alt="{{ sponsor.name }}" /> |                                     <img src="{% sponsor_thumbnail sponsor.sponsor_logo %}" alt="{{ sponsor.name }}" class="thumbnail"/> | ||||||
|                                 </a> |                                 </a> | ||||||
|                             </h2> |                             </h2> | ||||||
|                         </div> |                         </div> | ||||||
|                         <div class="col-md-10"> |                         <div class="col-md-7"> | ||||||
|                             <h5>{{ sponsor.name }}</h5> |                             <h5>{{ sponsor.name }}</h5> | ||||||
|                             <p><a href="{{ sponsor.external_url }}">{{ sponsor.external_url }}</a></p> |                             <p><a href="{{ sponsor.external_url }}">{{ sponsor.external_url }}</a></p> | ||||||
|                             <p>{{ sponsor.listing_text|urlize|linebreaks }}</p> |                             <p>{{ sponsor.listing_text|urlize|linebreaks }}</p> | ||||||
|  | @ -37,4 +40,5 @@ | ||||||
|             {% endfor %} |             {% endfor %} | ||||||
|         {% endif %} |         {% endif %} | ||||||
|     {% endfor %} |     {% endfor %} | ||||||
|  |     </div> <!-- jumbotron-white --> | ||||||
| {% endblock %} | {% endblock %} | ||||||
|  |  | ||||||
|  | @ -21,10 +21,9 @@ import sys | ||||||
| urlpatterns = [ | urlpatterns = [ | ||||||
|     url(r"^admin/", include(admin.site.urls)), |     url(r"^admin/", include(admin.site.urls)), | ||||||
| 
 | 
 | ||||||
|     # Debug toolbar |  | ||||||
| 
 |  | ||||||
|     url(r"^account/", include("account.urls")), |     url(r"^account/", include("account.urls")), | ||||||
| 
 | 
 | ||||||
|  |     url(r'^__debug__', include(debug_toolbar.urls)), | ||||||
|     url(r"^dashboard/", symposion.views.dashboard, name="dashboard"), |     url(r"^dashboard/", symposion.views.dashboard, name="dashboard"), | ||||||
| 
 | 
 | ||||||
|     url(r"^speaker/", include("symposion.speakers.urls")), |     url(r"^speaker/", include("symposion.speakers.urls")), | ||||||
|  | @ -59,9 +58,9 @@ urlpatterns = [ | ||||||
| 
 | 
 | ||||||
| ] | ] | ||||||
| 
 | 
 | ||||||
| if settings.DEBUG: | #if settings.DEBUG: | ||||||
|    import debug_toolbar | #   import debug_toolbar | ||||||
|    urlpatterns += [ url(r'^__debug__/', include(debug_toolbar.urls)), ] | #   urlpatterns += [ url(r'^__debug__/', include(debug_toolbar.urls)), ] | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) | urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) | ||||||
|  |  | ||||||
|  | @ -606,25 +606,25 @@ body { | ||||||
| .lede { | .lede { | ||||||
|   margin: 30px 0; |   margin: 30px 0; | ||||||
|   margin: 1.875rem 0; |   margin: 1.875rem 0; | ||||||
|   font-size: 4.2vw; |   font-size: 2.2vw; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| @media (min-width: 25em) { | @media (min-width: 25em) { | ||||||
|   .lede { |   .lede { | ||||||
|     font-size: 3vw; |     font-size: 1.5vw; | ||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| @media (min-width: 64em) { | @media (min-width: 64em) { | ||||||
|   .lede { |   .lede { | ||||||
|     font-size: 2vw; |     font-size: 2vw; | ||||||
|     margin: 3.375rem 0; |     margin: 3rem 0; | ||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| @media (min-width: 80em) { | @media (min-width: 80em) { | ||||||
|   .lede { |   .lede { | ||||||
|     font-size: 28px; |     font-size: 14px; | ||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Nick Seidenman (N6)
						Nick Seidenman (N6)