This is the channel entries tag, which is the only thing I’m editing (I’m using Zoo Visitor to get some info about who’s posting if that matters, and the {pr-} variables are preload-replace variables):
{exp:channel:entries channel="jobs" require_entry="yes"}
{exp:query sql="SELECT COUNT(*) as application_count FROM exp_channel_titles ct LEFT JOIN exp_relationships r ON r.rel_parent_id = ct.entry_id WHERE ct.author_id={logged_in_member_id} AND r.rel_child_id={entry_id}"}
{if application_count > 0}
<a href="#" class="disabled btn primary apply">You applied for this job</a>
{if:else}
<a href="http://{path=%27job/apply/{segment_2}%27}" class="btn primary apply">Apply for this job</a>
{/if}
{/exp:query}
<a href="http://{path={pr-member-group}/company}">_ <div class="employer-logo">_ {!-- Get the logo of the company who posted this job: --}_ {exp:zoo_visitor:details username="{username}"}_ {exp:ce_img:single src="{visitor:cf-profiles-logo}" alt="{cf-profiles-company}" width="120"}_ {/exp:zoo_visitor:details}_ </div><!-- /#employer-logo -->_ </a>
<div class="job-details">
<h2>{title}</h2>
<p> <br />
<a href="http://{path={pr-member-group}/company/{entry_id}}">{cf-jobs-company}</a> | {cf-jobs-location}</p>
<p> <br />
{cf-jobs-summary} <br />
</div><!-- /.job-details --></p>
<p> {if no_results}<br />
Please choose a job.<br />
{/if}</p>
<p>{/exp:channel:entries}Is that enough info?