forked from shanil-puri/blogger
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Shanil Puri
committed
Sep 27, 2014
1 parent
5f840b0
commit 269e952
Showing
8 changed files
with
77 additions
and
49 deletions.
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
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
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<span>*Click on Jobs to view details</span> | ||
<div class="data_container"> | ||
<table id = "jobs_table" class="display data_table"> | ||
<thead> | ||
<tr class="even"> | ||
<th>Owner Name</th> | ||
<th>Job Title</th> | ||
<th>Application Deadline</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<% @jobs.each do |job| %> | ||
<tr> | ||
<td><%= User.find(job.owner_id).name %></td> | ||
<td><%= link_to job.title, job_path(:id => job.id), :class => "job_body_link" %></td> | ||
<td class = "job_body_link"><%= job.deadline %></td> | ||
</tr> | ||
<% end %> | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
<script type="text/javascript"> | ||
$(document).ready(function() { | ||
$('#jobs_table').dataTable({ | ||
sPaginationType: "full_numbers", | ||
"sDom": '<"top"if>rt<"bottom"lp><"clear">;', // add the 'f' in top tag to enable searching like <"top"f> | ||
"bJQueryUI": true, | ||
"aoColumns": [ | ||
null, | ||
null, | ||
null | ||
]}); | ||
$(".job_body_link").on("click", function(e){ | ||
e.preventDefault(); | ||
var path = $(this).attr("href"); | ||
show_common_popup(path, ''); | ||
}); | ||
}); | ||
</script> |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div class="create_header"> | ||
<h1>My Jobs</h1> | ||
<% if can_post_new_job? %> | ||
<%= link_to "Post New Job", new_job_path %> | ||
<% end %> | ||
</div> | ||
|
||
<%= render :partial => "jobs_table.html.erb" %> |
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