-
Notifications
You must be signed in to change notification settings - Fork 3
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
3 changed files
with
43 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
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,22 @@ | ||
<div class="card"> | ||
<div class="card-body"> | ||
<p>你是企业主,需要寻找相关人才?</p> | ||
<%= link_to "发布招聘", main_app.new_topic_path(node_id: @node.id), class: "btn btn-primary btn-block" %> | ||
</div> | ||
</div> | ||
<div class="card"> | ||
<div class="card-header">招聘栏目版规</div> | ||
<div class="card-body"> | ||
<%= sanitize_markdown @node.summary_html %> | ||
</div> | ||
</div> | ||
<div class="card"> | ||
<div class="card-header">城市索引</div> | ||
<ul class="list-group list-group-flush"> | ||
<% cache "prefixes", expires_in: 7.days do %> | ||
<% Location.hot.limit(10).each do |prefix| %> | ||
<li class="list-group-item"><%= link_to prefix.name, homeland_jobs.jobs_path(location: prefix.name) %></li> | ||
<% end %> | ||
<% end %> | ||
</ul> | ||
</div> |
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,21 @@ | ||
<% title_tag(@page_title || t('menu.topics')) %> | ||
<div class="row"> | ||
<div class="col-md-9"> | ||
<div class="topics topics-<%= action_name %> card"> | ||
<div class="card-body item-list"> | ||
<% if @suggest_topics.present? %> | ||
<%= render partial: '/topics/topic', collection: @suggest_topics, locals: { suggest: true } %> | ||
<% end %> | ||
<%= render partial: '/topics/topic', collection: @topics, locals: { suggest: false } %> | ||
</div> | ||
<% if @topics.total_pages > 1 %> | ||
<div class="card-footer clearfix"> | ||
<%= paginate @topics %> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
<div class="sidebar col-md-3"> | ||
<%= render "sidebar" %> | ||
</div> | ||
</div> |