This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1 class="headersOne"><%= @cinema.name %></h1> | |
<b>Films currently shown:</b> | |
<ol class="noDots"> | |
<% @cinema.screenings.each do |screening, film| %> | |
<li> | |
<div data-role="collapsible" data-theme="b" data-content-theme="d" > | |
<h3><%= screening.film.title %></h3> | |
<p style="min-height:2px;"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi, | |
In regards to our conversion on gtalk, im having some issues with a bad query leak on the show files. Im trying to use https://gist.github.com/2572312 this method before to combine some elements together with group_by. But there not even working for days which is working fine there. | |
The file above works perfectly well and thats what i would like to achieve, however, its not working on the show/, this is the code for show. | |
<h1>Listing shows</h1> | |
<ul> | |
<% @shows.each do |show| %> | |
<li><%= show.screening.film.title %> @ <%= show.screening.cinema.name %></li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Hunger Games @ Cineworld Aberdeen | |
Mon 26 Mar | |
The Hunger Games @ Cineworld Aberdeen | |
Mon 26 Mar | |
The Hunger Games @ Cineworld Aberdeen | |
Mon 26 Mar | |
The Hunger Games @ Cineworld Aberdeen | |
Mon 26 Mar | |
The Hunger Games @ Cineworld Aberdeen | |
Mon 26 Mar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
undefined local variable or method `shows' for #<#<Class:0x007f8f62ca7828>:0x007f8f62ca3b10> | |
Extracted source (around line #10): | |
7: | |
8: <li><%= show.day %></li> | |
9: | |
10: <% shows.group_by(&:day).each do |day, shows| %> | |
11: <p><%= day %></p> | |
12: <ul style="width:320px;"> | |
13: <% shows.each_with_index do |show, i| %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% shows.each do |show| %> | |
<li style="display: inline-block;"> | |
<%= link_to show.showed_at, show %> | | |
</li> | |
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$user = & JFactory::getUser(); | |
if($user->get('guest')) { | |
document.write('<li class="mostread"><a href="/testing/index.php" class="mostread">Upload Photography</a></li>'); | |
} else { | |
document.write('<li class="mostread"><a href="/cultural/index.php?" class="mostread">Welcome to Joomla!</a></li>'); | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$user = & JFactory::getUser(); | |
if($user->get('guest')) { | |
document.write('<li class="mostread"><a href="http://jagmit-k0914490.co.cc/cultural/gallery/upload.php" class="mostread">Upload Photography</a></li>'); | |
} else { | |
document.write('<li class="mostread"><a href="/cultural/index.php?" class="mostread">Welcome to Joomla!</a></li>'); | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NotificationsMailer < ActionMailer::Base | |
default :from => "jagmitg@gmail.com" | |
default :to => "jagmitg@gmail.com" | |
def new_message(message) | |
@message = message | |
mail(:subject => "[YourWebsite.tld] #{message.subject}") | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?if ($_SERVER["REQUEST_URI"] == "/index.php"):?> | |
<li class="level0 active"><a href="<?=$this->getUrl('')?>index.php"><span>Home</span></a></li> | |
<?else:?> | |
<li class="level0"><a href="<?=$this->getUrl('')?>index.php"><span>Home</span></a></li> | |
<?endif?> | |
=============== | |
<div class="header-nav-container"> | |
<div class="header-nav"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Magento | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Open Software License (OSL 3.0) | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/osl-3.0.php |