Skip to content

Instantly share code, notes, and snippets.

@Soldo
Soldo / gist:1901896
Created February 24, 2012 16:34
_header.html.erb
<%= render(:partial => "/shared/menu", :locals => {
:dom_id => 'menu',
:css => 'menu'
}) %>
<div class="main indent-bot">
<h1>
<a href="#">kickboxing</a>
<strong>profesionalni KLUB - Široki Brijeg</strong>
@Soldo
Soldo / _content_page.html.erb
Created March 26, 2012 08:00
app/views/refinery/_content_page.html.erb
<%= render_content_page(@page, {
:hide_sections => local_assigns[:hide_sections],
:can_use_fallback => !local_assigns[:show_empty_sections] && !local_assigns[:remove_automatic_sections]
}) %>
<%= render :partial => '/refinery/draft_page_message' unless @page.nil? or @page.live? -%>
<% if post.live? %>
<article class="blog_post image_present" id="<%= dom_id(post) %>">
<% ima_slike = (post.custom_teaser.match /src="\S+/i) %>
<% if ima_slike %>
<section class="key_image">
<% path_od_slike = ima_slike.to_s[5...-1] %>
<%= link_to image_tag(path_od_slike, :width=>"100", :height=>"100"), refinery.blog_post_path(post) %>
</section>
<% if @post.prev.present? %>
<%= link_to(("&#171; " + truncate(@post.prev.title)).html_safe,
refinery.blog_post_path(@post.prev),
:class => 'prev button') do %>
<h1>Previous</h1>
<% end -%>
<% end -%>
<%= link_to(refinery.blog_post_path(@post.next)) do %>
<h1>Next</h1>
<h2><%= truncate(@post.next.title).html_safe %></h2>
<% end %>
@font-face {
font-family: "leaguegothicregular";
src: url(fonts/leaguegothicregular.ttf) format("truetype");
}
.
.
.
h2 {
<head>
<meta charset='<%= Rails.application.config.encoding %>' />
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><![endif]-->
<title><%= browser_title(yield(:title)) %></title>
<%= raw(%(<meta name="description" content="#{@meta.meta_description}" />)) if @meta.meta_description.present? -%>
<%= raw(%(<meta name="keywords" content="#{@meta.meta_keywords}">)) if @meta.meta_keywords.present? -%>
<%= raw(%(<link rel="canonical" content="#{@canonical}" />)) if @canonical.present? -%>
<%= csrf_meta_tags if Refinery::Core.authenticity_token_on_frontend -%>
<%= yield :meta %>
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Try 'port install sqlite3 +universal'
or 'yum install sqlite-devel' and check your shared library search path (the
location where your sqlite3 shared library is located).
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
open Graph code in <head> section
<head>
...
<meta property="og:title" content="Ovdje-ide-naslov" />
<meta property="og:type" content="sport" />
<meta property="og:url" content="http://kbk-siroki.herokuapp.com/" />
<meta property="og:image" content="http://kbk-siroki.herokuapp.com/assets/kickbox-sb-45f553cf6d712c40eda8b4592b9b014a.jpg" />
<meta property="og:site_name" content="Kickboxing Klub Široki Brijeg" />
<meta property="fb:admins" content="123456789" />
<a class="link-news" href="#">
<figure class="img-indent"><%= image_tag("page1-img1.jpg") %></figure>
<div class="extra-wrap">
<time class="tdate-1" datetime="2012-10-21">
<%= post.published_at.strftime('%d, %m, %Y') %>
</time>
<span><%= post.title %></span>
</div>
</a>