Commit 1773195d authored by Sacred Seven's avatar Sacred Seven

All times displayed in the project are converted to JalaliDate, the only known...

All times displayed in the project are converted to JalaliDate, the only known exception is Contributors Graph
parent 793d0aa4
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
%hr %hr
= form_tag admin_groups_path, method: :get, class: 'form-inline' do = form_tag admin_groups_path, method: :get, class: 'form-inline' do
.form-group .form-group
= text_field_tag :name, params[:name], class: "form-control input-mn-300", dir: 'auto' = text_field_tag :name, params[:name], class: "form-control input-mn-300", dir: :auto
= submit_tag "Search", class: "btn submit btn-primary" = submit_tag "Search", class: "btn submit btn-primary"
%hr %hr
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
→ →
%span.monospace %span.monospace
%strong{ dir: 'auto' } #{group.path}/ %strong{ dir: :auto } #{group.path}/
.clearfix .clearfix
%p{ dir: 'auto' } %p{ dir: 'auto' }
= truncate group.description, length: 150 = truncate group.description, length: 150
......
...@@ -15,21 +15,21 @@ ...@@ -15,21 +15,21 @@
= image_tag group_icon(@group.path), class: "avatar s60" = image_tag group_icon(@group.path), class: "avatar s60"
%li %li
%span.light Name: %span.light Name:
%strong{ dir: 'auto' }= @group.name %strong{ dir: :auto }= @group.name
%li %li
%span.light Path: %span.light Path:
%strong{ dir: 'auto' } %strong{ dir: :auto }
= @group.path = @group.path
%li %li
%span.light Description: %span.light Description:
%strong %strong
%span{ dir: 'auto' }= @group.description %span{ dir: :auto }= @group.description
%li %li
%span.light Created on: %span.light Created on:
%strong{ dir: 'auto' } %strong{ dir: :auto }
= @group.created_at.stamp("March 1, 1999") = JalaliDate.new(@group.created_at).strftime("%A %d %b %Y")
.panel.panel-default .panel.panel-default
.panel-heading .panel-heading
...@@ -40,11 +40,11 @@ ...@@ -40,11 +40,11 @@
%ul.well-list %ul.well-list
- @projects.each do |project| - @projects.each do |project|
%li %li
%strong{ dir: 'auto' } %strong{ dir: :auto }
= link_to project.name_with_namespace, [:admin, project] = link_to project.name_with_namespace, [:admin, project]
%span.label.label-gray %span.label.label-gray
= repository_size(project) = repository_size(project)
%span.pull-right.light{ dir: 'auto' } %span.pull-right.light{ dir: :auto }
%span.monospace= project.path_with_namespace + ".git" %span.monospace= project.path_with_namespace + ".git"
.panel-footer .panel-footer
= paginate @projects, param_name: 'projects_page', theme: 'gitlab' = paginate @projects, param_name: 'projects_page', theme: 'gitlab'
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
- user = member.user - user = member.user
%li{class: dom_class(member), id: dom_id(user)} %li{class: dom_class(member), id: dom_id(user)}
.list-item-name .list-item-name
%strong{ dir: 'auto' } %strong{ dir: :auto }
= link_to user.name, admin_user_path(user) = link_to user.name, admin_user_path(user)
%span.pull-right.light %span.pull-right.light
= member.human_access = member.human_access
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
%li %li
%span.light Created on: %span.light Created on:
%strong %strong
= @project.created_at.stamp("March 1, 1999") = JalaliDate.new(@project.created_at).strftime("%A %d %b %Y")
%li %li
%span.light http: %span.light http:
......
...@@ -60,13 +60,8 @@ ...@@ -60,13 +60,8 @@
- if user.blocked? - if user.blocked?
%i.fa.fa-lock.cred %i.fa.fa-lock.cred
- else - else
<<<<<<< HEAD
%i.icon-user.cgreen
= link_to user.name, [:admin, user], dir: 'auto'
=======
%i.fa.fa-user.cgreen %i.fa.fa-user.cgreen
= link_to user.name, [:admin, user] = link_to user.name, [:admin, user], dir: :auto
>>>>>>> v7.4.2
- if user.admin? - if user.admin?
%strong.cred (Admin) %strong.cred (Admin)
- if user == current_user - if user == current_user
......
...@@ -58,12 +58,12 @@ ...@@ -58,12 +58,12 @@
%li %li
%span.light Member since: %span.light Member since:
%strong %strong
= @user.created_at.stamp("Nov 12, 2031") = JalaliDate.new(@user.created_at).strftime("%A %d %b %Y")
- if @user.confirmed_at - if @user.confirmed_at
%li %li
%span.light Confirmed at: %span.light Confirmed at:
%strong %strong
= @user.confirmed_at.stamp("Nov 12, 2031") = JalaliDate.new(@user.confirmed_at).strftime("%A %d %b %Y")
- else - else
%li %li
%span.light Confirmed: %span.light Confirmed:
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
%span.light Current sign-in at: %span.light Current sign-in at:
%strong %strong
- if @user.current_sign_in_at - if @user.current_sign_in_at
= @user.current_sign_in_at.stamp("Nov 12, 2031") = JalaliDate.new(@user.current_sign_in_at).strftime("%A %d %b %Y")
- else - else
never never
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
%span.light Last sign-in at: %span.light Last sign-in at:
%strong %strong
- if @user.last_sign_in_at - if @user.last_sign_in_at
= @user.last_sign_in_at.stamp("Nov 12, 2031") = JalaliDate.new(@user.last_sign_in_at).strftime("%A %d %b %Y")
- else - else
never never
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
- group = user_group.group - group = user_group.group
%li.group_member %li.group_member
%span{class: ("list-item-name" unless user_group.owner?)} %span{class: ("list-item-name" unless user_group.owner?)}
%strong= link_to group.name, admin_group_path(group), dir: 'auto' %strong= link_to group.name, admin_group_path(group), dir: :auto
.pull-right .pull-right
%span.light= user_group.human_access %span.light= user_group.human_access
- unless user_group.owner? - unless user_group.owner?
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
%strong{ dir: :auto }= @key.title %strong{ dir: :auto }= @key.title
%li %li
%span.light Created on: %span.light Created on:
%strong= @key.created_at.stamp("Aug 21, 2011") %strong= JalaliDate.new(@key.created_at).strftime("%A %d %b %Y")
.col-md-8 .col-md-8
%p %p
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
.col-md-2 .col-md-2
%h4 %h4
%i.fa.fa-calendar %i.fa.fa-calendar
%span= day.stamp("28 Aug, 2010") %span= JalaliDate.new(day).strftime("%A %d %b %Y")
%p= pluralize(commits.count, 'commit') %p= pluralize(commits.count, 'commit')
.col-md-10 .col-md-10
%ul.bordered-list %ul.bordered-list
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
= @key.title = @key.title
%small %small
created on created on
= @key.created_at.stamp("Aug 21, 2011") = JalaliDate.new(@key.created_at).strftime("%A %d %b %Y")
.back-link .back-link
= link_to project_deploy_keys_path(@project) do = link_to project_deploy_keys_path(@project) do
&larr; To keys list &larr; To keys list
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
%p.lead %p.lead
Commits statistic for Commits statistic for
%strong #{@repository.root_ref} %strong #{@repository.root_ref}
#{@commits_graph.start_date.strftime('%b %d')} - #{@commits_graph.end_date.strftime('%b %d')} %span{ dir: :auto }#{JalaliDate.new(@commits_graph.end_date).strftime("%d %b")} - #{JalaliDate.new(@commits_graph.start_date).strftime("%d %b")}
.row .row
.col-md-6 .col-md-6
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
.prepend-top-10 .prepend-top-10
%p %p
%span.light Created on %span.light Created on
#{@project.created_at.stamp('Aug 22, 2013')} #{JalaliDate.new(@project.created_at).strftime("%A %d %b %Y")}
%p %p
%span.light Owned by %span.light Owned by
- if @project.group - if @project.group
......
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
%ul.well-list %ul.well-list
%li %li
%span.light Member since %span.light Member since
%strong= user.created_at.stamp("Aug 21, 2011") %strong= JalaliDate.new(user.created_at).strftime("%A %d %b %Y")
- unless user.skype.blank? - unless user.skype.blank?
%li %li
%span.light Skype: %span.light Skype:
%strong= link_to user.skype, "skype:#{user.skype}", dir: 'auto' %strong= link_to user.skype, "skype:#{user.skype}", dir: :auto
- unless user.linkedin.blank? - unless user.linkedin.blank?
%li %li
%span.light LinkedIn: %span.light LinkedIn:
...@@ -16,11 +16,11 @@ ...@@ -16,11 +16,11 @@
- unless user.twitter.blank? - unless user.twitter.blank?
%li %li
%span.light Twitter: %span.light Twitter:
%strong= link_to user.twitter, "http://www.twitter.com/#{user.twitter}", dir: 'auto' %strong= link_to user.twitter, "http://www.twitter.com/#{user.twitter}", dir: :auto
- unless user.website_url.blank? - unless user.website_url.blank?
%li %li
%span.light Website: %span.light Website:
%strong= link_to user.short_website_url, user.full_website_url, dir: 'auto' %strong= link_to user.short_website_url, user.full_website_url, dir: :auto
- unless user.bio.blank? - unless user.bio.blank?
%li %li
%span.light Bio: %span.light Bio:
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
%br %br
%span.user-show-username #{@user.username} %span.user-show-username #{@user.username}
%br %br
%small member since #{@user.created_at.stamp("Nov 12, 2031")} %small member since #{JalaliDate.new(@user.created_at).strftime("%A %d %b %Y")}
.clearfix .clearfix
- if @groups.any? - if @groups.any?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment