-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add views and translations for resume preview
- Loading branch information
1 parent
4557690
commit 39d9bfa
Showing
5 changed files
with
56 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
= content_for :meta do | ||
= structured_data_tag 'resume', | ||
resume: @resume, educations: @resume_educations, works: @resume_works | ||
|
||
= content_for :header do | ||
.d-flex.justify-content-center | ||
.m-1 | ||
= link_to @resume.user.full_name, user_path(@resume.user) | ||
- if current_user_or_guest.admin? | ||
.m-1 | ||
= link_to edit_admin_resume_path(@resume), class: 'btn btn-outline-primary' do | ||
span.bi.bi-gear | ||
|
||
h3.text-center = @resume | ||
|
||
- if @resume.archived? | ||
.alert.alert-warning = t('.archived') | ||
|
||
- if policy(@resume).download? | ||
.mb-2.d-flex.justify-content-end | ||
= link_to resume_pdf_path(@resume, 'base', format: :pdf), | ||
class: 'me-3', title: t('web.resumes.show.print'), target: :_blank, rel: 'noopener' do | ||
i.bi.bi-printer-fill | ||
= link_to resume_pdf_path(@resume, 'base'), title: t('web.resumes.show.download') do | ||
i.bi.bi-download | ||
|
||
.mb-5 | ||
= render 'web/resumes/information' |
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 |
---|---|---|
|
@@ -149,3 +149,9 @@ full_en: | |
summary: | | ||
A self-taught programmer who has chosen the path of constant self-improvement. I value beautiful and concise code, I love functional programming (the great trinity of map, filter, reduce). I work with languages such as JS, Ruby, PHP, Python, Elixir, Clojure (to varying degrees of skill, of course). I admire the LISP family of languages, so much so that I am writing my own LISP interpreter in Elixir as a pet project. At the moment, I am delving into Unix OS in order to further improve my DevOps skills. | ||
answers_count: 1 | ||
|
||
one_draft: | ||
<<: *DEFAULTS | ||
state: draft | ||
user: one | ||
contact_email: [email protected] |