Adust the as_table tag to render a pick link if appropriate
The templates are adjusted to pass on a 'reference' value, which
is the url_name of the view from which the entity should be picked.
The as_table (and related) function(s) construct and then pass on
this argument and enable takes_contex so that we have access to the
context of the enclosing template.
We only extract ReferenceProperties that end with '_link_id' since
that is how all RP's are currently named. It is not possible to
create a field with the same name as the RP, as GAE will try to
interpret it's contents as the key of an entity before even calling
any function we can override.
Patch by: Sverre Rabbelier
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<link rel="stylesheet" href="/svn/trunk/mockups/content/css/mockups.css" type="text/css"/>
<title>Google Highly Open Participation 2008</title>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" src="/svn/trunk/mockups/content/js/blog.js"></script>
<script type="text/javascript">
google.load("feeds", "1");
function initialize() {
var blog = new BlogPreview(document.getElementById("blog"));
blog.show("http://google-opensource.blogspot.com/feeds/posts/default/-/ghop", "Google Highly Open Participation Blog");
}
google.setOnLoadCallback(initialize);
</script>
</head>
<body>
<div id="login">
<a href="http://code.google.com/p/soc/issues/list">Report bugs</a> |
<a href="/">Sign out</a>
</div>
<div id="header">
<div id="logo">
<a href="/svn/trunk/mockups/program/home/ghop2008/ghop2008home.html"><img src="/svn/trunk/mockups/content/images/GHOP.jpg" alt="Google Highly Open Participation"/></a>
<span title=" TODO: logo updated in program sponsor interface " class="popup">
<small>*</small>
</span>
</div>
<div id="title">
Google Highly Open Participation 2008
</div>
<div id="breadcrumbs">
<span class="item">
<a href="/svn/trunk/mockups/">Google Open Source Programs</a>
</span>
>
<span class="selected">
<a href="/svn/trunk/mockups/program/home/ghop2008/ghop2008home.html">Google Highly Open Participation 2008</a>
</span>
</div>
</div>
<div id="side" dir="ltr">
<div id="menu">
<ul>
<li>
<a href="/svn/trunk/mockups/sitehome.html">Google Open Source Programs</a>
<ul>
<li>
<a href="/svn/trunk/mockups/user/profile/linkname/profile.html">User (Sign In)</a>
</li>
</ul>
<ul>
<li>
<a href="/svn/trunk/mockups/program/home/gsoc2009/gsoc2009home.html">Google Summer of Code</a>
<ul>
<li>
<a href="/svn/trunk/mockups/program/community/gsoc2009/gsoc2009comm.html">Community</a>
</li>
<li>
<a href="/svn/trunk/mockups/program/docs/gsoc2009/faqs/gsoc2009faqs.html">Program FAQs</a>
</li>
<li>
<a href="/svn/trunk/mockups/program/docs/gsoc2009/tos/gsoc2009tos.html">Terms of Service</a>
</li>
</ul>
</li>
<li>
<a class="selected" href="/svn/trunk/mockups/program/home/ghop2008/ghop2008home.html">Google Highly Open Participation</a>
<ul>
<li>
<a href="/svn/trunk/mockups/program/community/ghop2008/">Community</a>
</li>
<li>
<a href="/svn/trunk/mockups/program/docs/ghop2008/faqs/">Program FAQs</a>
</li>
<li>
<a href="/svn/trunk/mockups/program/docs/ghop2008/rules/rules.html">Contest Rules</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div id="search">
<form id="searchbox_015986126177484454297:pfmwlvdl42y" action="http://www.google.com/cse">
<input type="hidden" name="cx" value="015986126177484454297:pfmwlvdl42y" />
<input type="hidden" name="cof" value="FORID:0" />
<div class="header">
Search Google Open Source:
</div>
<input name="q" type="text" size="20" />
<input type="submit" name="sa" value="Search" />
<br/>
</form>
<script type="text/javascript" src="http://google.com/coop/cse/brand?form=searchbox_015986126177484454297:pfmwlvdl42y">
</script></form>
</div>
<div id="badge">
<a href="http://code.google.com/p/soc/" target="_blank">Powered by Melange</a>
<span title=" TODO: need a Melange logo " class="popup">
<small>*</small>
</span>
</div>
</div>
<div id="body">
<div style="line-height: 140%;">
<p>
This is generic HTML that can be configured via the site administration
interface.
</p>
<p>
For a list of organizations currently participating in the Google Highly Open
Participation Contest for 2008, please visit the
<a href="/svn/trunk/mockups/program/community/ghop2008/">Community</a> page.
</p>
<div id="blog"></div>
<p class="todo">
The site administration interface will provide a mechanism to select a feed to
be displayed here.
</p>
</div>
<div id="footer" dir="ltr">
<div class="text">
©2008 Google -
<a href="http://www.google.com/">Google Home</a> -
<a href="http://www.google.com/privacy.html">Privacy Policy</a>
</div>
</div>
</div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct="UA-4291635-1"; // code.google.com site-wide tracking
_uanchor=1;
_uff=0;
urchinTracker();
</script>
</body>
</html>