|
1 | 1 | <section id="page-title">
|
2 |
| - |
3 | 2 | <div class="container clearfix">
|
4 | 3 | <div class="row clearfix">
|
5 | 4 | <div class="col-md-8 col-xs-12">
|
6 | 5 | <h1><%= @job.title %></h1>
|
7 | 6 | <h2><%= @job.company_name %> <%= location_str(@job) %></h2>
|
8 | 7 | </div>
|
9 |
| - |
10 | 8 | <div class="col-md-4 nopadding fright hidden-xs">
|
11 | 9 | <% if authorised_job_owner?(@job) %>
|
12 |
| - <%= render('owner_job_actions', job: @job) %> |
| 10 | + <%= render('owner_job_actions', job: @job) %> |
13 | 11 | <% else %>
|
14 | 12 | <%= link_to("Visit page to apply", @job.external_link, class: "button button-3d notopmargin fright hidden-xs", target: "_blank") %>
|
15 | 13 | <% end %>
|
16 | 14 | </div>
|
17 |
| - |
18 | 15 | <!-- Mobile friendly interface -->
|
19 | 16 | <div class="col-md-12 nopadding visible-xs">
|
20 | 17 | <%= link_to("Visit page to apply", @job.external_link, class: "button button-3d", target: "_blank") %>
|
21 | 18 | </div>
|
22 | 19 | </div>
|
23 |
| - |
24 | 20 | </div>
|
25 | 21 | </section>
|
26 |
| - |
27 |
| -<%= render("shared/flash") %> |
28 |
| - |
29 | 22 | <section id="content">
|
30 |
| - |
31 | 23 | <div class="content-wrap">
|
32 |
| - |
33 | 24 | <div class="container clearfix">
|
34 | 25 | <!-- Post Content
|
35 | 26 | ============================================= -->
|
36 | 27 | <div class="postcontent nobottommargin">
|
37 |
| - |
38 | 28 | <div class="single-post nobottommargin">
|
39 |
| - |
40 | 29 | <!-- Single Post
|
41 | 30 | ============================================= -->
|
42 | 31 | <div class="entry clearfix">
|
43 |
| - |
44 | 32 | <!-- Entry Meta
|
45 | 33 | ============================================= -->
|
46 | 34 | <ul class="entry-meta clearfix">
|
|
56 | 44 | </li>
|
57 | 45 | </ul>
|
58 | 46 | <!-- .entry-meta end -->
|
59 |
| - |
60 | 47 | <!-- Entry Content
|
61 | 48 | ============================================= -->
|
62 | 49 | <div class="entry-content notopmargin">
|
63 |
| - |
64 | 50 | <ul class="content-margin-left" style="line-height: 1.8 !important;">
|
65 | 51 | <li>
|
66 | 52 | <i class="icon-briefcase"></i>
|
67 | 53 | Employment type: <%= @job.employment_type.try(:humanize) %>
|
68 | 54 | </li>
|
69 |
| - |
70 | 55 | <li>
|
71 | 56 | <i class="icon-users"></i>
|
72 | 57 | Experience: <%= @job.experience.try(:humanize) %>
|
73 | 58 | </li>
|
74 |
| - |
75 | 59 | <li>
|
76 | 60 | <i class="icon-money"></i>
|
77 | 61 | Salary: <%= @job.salary_to_s %>
|
78 | 62 | </li>
|
79 |
| - |
80 | 63 | <li>
|
81 | 64 | <i class="icon-chart"></i>
|
82 | 65 | Job has equity or stock options: <%= @job.equity? ? 'Yes' : 'No' %>
|
83 | 66 | </li>
|
84 |
| - |
85 | 67 | <li>
|
86 | 68 | <i class="icon-plane"></i>
|
87 | 69 | Job is remote or has remote working as an option: <%= @job.remote? ? 'Yes' : 'No' %>
|
88 | 70 | </li>
|
89 |
| - |
90 | 71 | <% unless @job.apply_email.blank? %>
|
91 | 72 | <li>
|
92 | 73 | <i class="icon-email"></i>
|
93 | 74 | Apply to email: <%= mail_to(@job.apply_email) %>
|
94 | 75 | </li>
|
95 | 76 | <% end %>
|
96 | 77 | </ul>
|
97 |
| - |
98 | 78 | <hr/>
|
99 | 79 | <div>
|
100 | 80 | <% if @job.description.blank? %>
|
|
108 | 88 | </div>
|
109 | 89 | </div>
|
110 | 90 | </div>
|
111 |
| - |
112 | 91 | <!-- Sidebar
|
113 | 92 | ============================================= -->
|
114 | 93 | <% if @job.online? %>
|
|
121 | 100 | </div>
|
122 | 101 | </div>
|
123 | 102 | <% end %>
|
124 |
| - |
125 | 103 | <% if authorised_admin? %>
|
126 | 104 | <div class="sidebar nobottommargin col_last clearfix visible-lg visible-md">
|
127 | 105 | <div class="sidebar-widgets-wrap">
|
128 | 106 | <div class="panel panel-info">
|
129 | 107 | <div class="panel-heading">
|
130 | 108 | <h3 class="panel-title">Dashboard actions</h3>
|
131 | 109 | </div>
|
132 |
| - |
133 | 110 | <div class="panel-body">
|
134 | 111 | <div class="row">
|
135 | 112 | <!-- Display admin actions -->
|
|
142 | 119 | </div>
|
143 | 120 | </div>
|
144 | 121 | <% end %>
|
145 |
| - |
146 | 122 | <% if (authorised_job_owner?(@job) || authorised_admin?) %>
|
147 | 123 | <div class="sidebar nobottommargin col_last clearfix visible-lg visible-md">
|
148 | 124 | <div class="sidebar-widgets-wrap">
|
|
151 | 127 | <h3 class="panel-title">Status</h3>
|
152 | 128 | <small>(Only visible to job owner)</small>
|
153 | 129 | </div>
|
154 |
| - |
155 | 130 | <div class="panel-body">
|
156 | 131 | <%= job_status(@job) %>
|
157 | 132 | </div>
|
158 | 133 | </div>
|
159 | 134 | </div>
|
160 | 135 | </div>
|
161 |
| - |
162 | 136 | <div class="sidebar nobottommargin col_last clearfix visible-lg visible-md">
|
163 | 137 | <div class="sidebar-widgets-wrap">
|
164 | 138 | <div class="panel panel-info">
|
|
168 | 142 | <br/>
|
169 | 143 | <small>(Only visible to job owner)</small>
|
170 | 144 | </div>
|
171 |
| - |
172 | 145 | <div class="panel-body">
|
173 |
| - <% if @job_statistics.size > 0 %> |
| 146 | + <% if @job_statistics.size > 0 %> |
174 | 147 | <ul class="content-margin-left">
|
175 | 148 | <% @job_statistics.each do |job_statistic| %>
|
176 | 149 | <li><%= link_to(visitor_name(job_statistic.user), directory_user_path(job_statistic.user)) %> x <%= job_statistic.counter %> <%= fa_icon("eye") %></li>
|
177 | 150 | <% end %>
|
178 | 151 | </ul>
|
179 | 152 | <% else %>
|
180 |
| - No views yet |
| 153 | + No views yet |
181 | 154 | <% end %>
|
182 | 155 | </div>
|
183 | 156 | </div>
|
184 | 157 | </div>
|
185 | 158 | </div>
|
| 159 | + |
| 160 | + <!-- Section displays job details to share on social media channels --> |
| 161 | + <% if (authorised_job_owner?(@job) || authorised_admin?) %> |
| 162 | + <div class="sidebar nobottommargin col_last clearfix visible-lg visible-md"> |
| 163 | + <div class="sidebar-widgets-wrap"> |
| 164 | + <div class="panel panel-info"> |
| 165 | + <div class="panel-heading"> |
| 166 | + <h3 class="panel-title">Share to Social Media text</h3> |
| 167 | + </div> |
| 168 | + <div class="panel-body"> |
| 169 | + <%= @job.to_text_for_social_media %> |
| 170 | + </div> |
| 171 | + </div> |
| 172 | + </div> |
| 173 | + </div> |
| 174 | + <% end %> |
186 | 175 | <% end %>
|
187 | 176 | <!-- .sidebar end -->
|
188 | 177 | </div>
|
|
0 commit comments