This repository has been archived by the owner on Jun 16, 2021. It is now read-only.
-
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.
Merge pull request #424 from omu/develop
Merge develop into master
- Loading branch information
Showing
13 changed files
with
76 additions
and
67 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,20 @@ | ||
# frozen_string_literal: true | ||
|
||
class VcardBuilder | ||
def initialize(identity) | ||
@identity = identity | ||
end | ||
|
||
def build_vcard | ||
<<~VCARD | ||
BEGIN:VCARD | ||
VERSION:3.0 | ||
N:#{@identity.last_name};#{@identity.first_name};;; | ||
FN:#{@identity.first_name} #{@identity.last_name} | ||
ORG:#{Rails.application.config.tenant.name} | ||
TITLE:#{@identity.user.title} | ||
EMAIL:#{@identity.user.email} | ||
END:VCARD | ||
VCARD | ||
end | ||
end |
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 |
---|---|---|
@@ -1 +1,26 @@ | ||
<%= render 'form', locals: { word: '' } %> | ||
<%= render 'search', locals: { term: params[:term] } %> | ||
|
||
<% if params[:term] %> | ||
<div class='col-sm-12'> | ||
<div class='card'> | ||
<div class="card-header"> | ||
<%= fa_icon 'search' %> <%= params[:term] %> için arama sonuçları | ||
</div> | ||
<div class="card-body"> | ||
<div class="col-sm-12"> | ||
<% if @users.any? %> | ||
<div class="list-group"> | ||
<% @users.each do |user| %> | ||
<%= link_to profiles_show_path(user.slug), class: 'list-group-item list-group-item-action' do %> | ||
[<%= user.try(:title) %>] - <%= full_name(user.identities.user_identity) %> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
<% else %> | ||
<h2> Aradığınız kriterlere göre bir sonuç bulunamadı...</h2> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<% end %> |
This file was deleted.
Oops, something went wrong.
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