Commit b6d443cb003565221f06432e1acd00662b13e68c
1 parent
019bbf17
Exists in
master
and in
22 other branches
adjust infra to embed track block
Showing
3 changed files
with
15 additions
and
25 deletions
Show diff stats
app/controllers/embed_controller.rb
app/views/layouts/embed.rhtml
| ... | ... | @@ -19,13 +19,19 @@ |
| 19 | 19 | content.respond_to?(:call) ? content.call : content |
| 20 | 20 | end.join("\n") |
| 21 | 21 | %> |
| 22 | - | |
| 23 | - <div id="wrap-1"> | |
| 24 | - <div id="wrap-2"> | |
| 25 | - <div id="content"> | |
| 26 | - <div id="content-inner"> | |
| 27 | - <%= yield %> | |
| 28 | - <br style="clear: both" /> | |
| 22 | + <div id="embed"> | |
| 23 | + <div id="wrap-1"> | |
| 24 | + <div id="wrap-2"> | |
| 25 | + <div id="content"> | |
| 26 | + <div id="content-inner"> | |
| 27 | + <div class="boxes" id="boxes"> | |
| 28 | + <div class="box box-1" id="box-1"> | |
| 29 | + <div class="blocks"> | |
| 30 | + <%= yield %> | |
| 31 | + </div> | |
| 32 | + </div> | |
| 33 | + </div> | |
| 34 | + </div> | |
| 29 | 35 | </div> |
| 30 | 36 | </div> |
| 31 | 37 | </div> |
| ... | ... | @@ -37,21 +43,5 @@ |
| 37 | 43 | }); |
| 38 | 44 | </script> |
| 39 | 45 | |
| 40 | - <!-- Piwik --> | |
| 41 | - <script type="text/javascript"> | |
| 42 | - var _paq = _paq || []; | |
| 43 | - _paq.push(["trackPageView"]); | |
| 44 | - _paq.push(["enableLinkTracking"]); | |
| 45 | - | |
| 46 | - (function() { | |
| 47 | - var u="http://estatisticas.presidencia.gov.br/"; | |
| 48 | - _paq.push(["setTrackerUrl", u+"piwik.php"]); | |
| 49 | - _paq.push(["setSiteId", "14"]); | |
| 50 | - var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript"; | |
| 51 | - g.defer=true; g.async=true; g.src="/javascripts/piwik.js"; s.parentNode.insertBefore(g,s); | |
| 52 | - })(); | |
| 53 | - </script> | |
| 54 | - <!-- End Piwik Code --> | |
| 55 | - | |
| 56 | 46 | </body> |
| 57 | 47 | </html> | ... | ... |
config/routes.rb
| ... | ... | @@ -32,7 +32,7 @@ ActionController::Routing::Routes.draw do |map| |
| 32 | 32 | map.connect 'user_themes/*stuff', :controller => 'not_found', :action => 'nothing' |
| 33 | 33 | |
| 34 | 34 | # embed controller |
| 35 | - map.embed_block 'embed/block/:id', :controller => 'embed', :action => 'embed_block', :id => /.+/ | |
| 35 | + map.embed_block 'embed/block/:id', :controller => 'embed', :action => 'index', :id => /.+/ | |
| 36 | 36 | |
| 37 | 37 | # online documentation |
| 38 | 38 | map.doc 'doc', :controller => 'doc', :action => 'index' | ... | ... |