Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -301,3 +301,4 @@ hr.cleaner { | |
a img { | ||
border: 0; | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,60 @@ | ||
{% extends "main.html" %} | ||
|
||
{% block og %} | ||
<meta property="og:title" content="{{ event.title }}" /> | ||
<meta property="og:type" content="activity"/> | ||
<meta property="og:url" content="{{ event.get_absolute_url }}"/> | ||
<meta property="og:site_name" content="akce.rpgplanet.cz"/> | ||
<meta property="fb:admins" content="{{ FB_ADMIN_IDS }}"/> | ||
<meta property="og:description" | ||
content="{{ event.djangomarkup_description }}"/> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<h1>{{ event.title }}</h1> | ||
<fb:like></fb:like> | ||
|
||
{% if user.is_authenticated %} | ||
<div id="rvsp"> | ||
<form method="post"> | ||
<fieldset> | ||
<label>Zúčastníš se?</label> | ||
<ul> | ||
<li><label accesskey="a"><input type="radio" value="yes" name="rvsp" />Ano</label></li> | ||
<li><label accesskey="n"><input type="radio" value="no" name="rvsp" />Ne</label></li> | ||
<li><label accesskey="m"><input type="radio" value="maybe" name="rvsp" />Možná</label></li> | ||
</ul> | ||
<input type="submit" value="Potvrď" /> | ||
</fieldset> | ||
</form> | ||
</div> | ||
{% endif %} | ||
|
||
{% autoescape off %} | ||
|
||
{{ event.description }} | ||
|
||
{% endautoescape %} | ||
|
||
<div id="fb-root"></div> | ||
<script> | ||
|
||
window.fbAsyncInit = function() { | ||
FB.init({ | ||
appId: {{ facebook_application_id }}, | ||
status: true, | ||
cookie: true, | ||
xfbml: true | ||
}); | ||
}; | ||
(function() { | ||
var e = document.createElement('script'); e.async = true; | ||
e.src = document.location.protocol + | ||
'//connect.facebook.net/cs_CZ/all.js'; | ||
e.async = true; | ||
document.getElementById('fb-root').appendChild(e); | ||
}()); | ||
</script> | ||
|
||
{% endblock %} |
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