Commit 03d9d5b8 authored by Sacred Seven's avatar Sacred Seven

RTL support added

parent f092e53e
...@@ -39,3 +39,4 @@ public/assets/ ...@@ -39,3 +39,4 @@ public/assets/
.envrc .envrc
dump.rdb dump.rdb
tags tags
.AppleDouble
...@@ -176,6 +176,9 @@ $ -> ...@@ -176,6 +176,9 @@ $ ->
toggleClass('icon-chevron-up') toggleClass('icon-chevron-up')
$(@).closest(".diff-file").find(".notes_holder").toggle() $(@).closest(".diff-file").find(".notes_holder").toggle()
e.preventDefault() e.preventDefault()
# RTL Support in wiki pages
$('.wiki').find('*').not('li').attr('dir', 'auto');
(($) -> (($) ->
# Disable an element and add the 'disabled' Bootstrap class # Disable an element and add the 'disabled' Bootstrap class
......
...@@ -62,7 +62,7 @@ module CommitsHelper ...@@ -62,7 +62,7 @@ module CommitsHelper
# Returns the sorted alphabetically links to branches, separated by a comma # Returns the sorted alphabetically links to branches, separated by a comma
def commit_branches_links(project, branches) def commit_branches_links(project, branches)
branches.sort.map { |branch| link_to(branch, project_tree_path(project, branch)) }.join(", ").html_safe branches.sort.map { |branch| link_to(branch, project_tree_path(project, branch), dir: "auto") }.join(", ").html_safe
end end
def link_to_browse_code(project, commit) def link_to_browse_code(project, commit)
...@@ -96,7 +96,7 @@ module CommitsHelper ...@@ -96,7 +96,7 @@ module CommitsHelper
text = if options[:avatar] text = if options[:avatar]
avatar = image_tag(avatar_icon(person_email, options[:size]), class: "avatar #{"s#{options[:size]}" if options[:size]}", width: options[:size], alt: "") avatar = image_tag(avatar_icon(person_email, options[:size]), class: "avatar #{"s#{options[:size]}" if options[:size]}", width: options[:size], alt: "")
%Q{#{avatar} <span class="commit-#{options[:source]}-name">#{person_name}</span>} %Q{#{avatar} <span class="commit-#{options[:source]}-name" dir="auto">#{person_name}</span>}
else else
person_name person_name
end end
......
...@@ -3,7 +3,7 @@ module EventsHelper ...@@ -3,7 +3,7 @@ module EventsHelper
author = event.author author = event.author
if author if author
link_to author.name, user_path(author.username) link_to author.name, user_path(author.username), dir: 'auto'
else else
event.author_name event.author_name
end end
......
...@@ -7,7 +7,7 @@ module LabelsHelper ...@@ -7,7 +7,7 @@ module LabelsHelper
label_color = label.color || Label::DEFAULT_COLOR label_color = label.color || Label::DEFAULT_COLOR
text_color = text_color_for_bg(label_color) text_color = text_color_for_bg(label_color)
content_tag :span, class: 'label color-label', style: "background:#{label_color};color:#{text_color}" do content_tag :span, class: 'label color-label', style: "background:#{label_color};color:#{text_color}", dir: :auto do
label.name label.name
end end
end end
......
...@@ -8,7 +8,7 @@ module ProjectsHelper ...@@ -8,7 +8,7 @@ module ProjectsHelper
title = content_tag(:span, project.name, class: 'project-name') title = content_tag(:span, project.name, class: 'project-name')
if project.namespace if project.namespace
namespace = content_tag(:span, "#{project.namespace.human_name} / ", class: 'namespace-name') namespace = content_tag(:span, "#{project.namespace.human_name} / ", class: 'namespace-name', dir: 'auto')
title = namespace + title title = namespace + title
end end
...@@ -28,7 +28,7 @@ module ProjectsHelper ...@@ -28,7 +28,7 @@ module ProjectsHelper
author_html << image_tag(avatar_icon(author.try(:email), opts[:size]), width: opts[:size], class: "avatar avatar-inline #{"s#{opts[:size]}" if opts[:size]}", alt:'') if opts[:avatar] author_html << image_tag(avatar_icon(author.try(:email), opts[:size]), width: opts[:size], class: "avatar avatar-inline #{"s#{opts[:size]}" if opts[:size]}", alt:'') if opts[:avatar]
# Build name span tag # Build name span tag
author_html << content_tag(:span, sanitize(author.name), class: 'author') if opts[:name] author_html << content_tag(:span, sanitize(author.name), class: 'author', dir: "auto") if opts[:name]
author_html = author_html.html_safe author_html = author_html.html_safe
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
Broadcast Messages Broadcast Messages
%p.light %p.light
Broadcast messages are displayed for every user and can be used to notify users about scheduled maintenance, recent upgrades and more. Broadcast messages are displayed for every user and can be used to notify users about scheduled maintenance, recent upgrades and more.
.broadcast-message-preview .broadcast-message-preview{ dir: 'auto' }
%i.icon-bullhorn %i.icon-bullhorn
%span Your message here %span Your message here
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
.form-group .form-group
= f.label :message, class: 'control-label' = f.label :message, class: 'control-label'
.col-sm-10 .col-sm-10
= f.text_area :message, class: "form-control", rows: 2, required: true = f.text_area :message, class: "form-control", rows: 2, required: true, dir: 'auto'
%div %div
= link_to '#', class: 'js-toggle-colors-link' do = link_to '#', class: 'js-toggle-colors-link' do
Customize colors Customize colors
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
= link_to [:admin, broadcast_message], method: :delete, remote: true, class: 'remove-row btn btn-tiny' do = link_to [:admin, broadcast_message], method: :delete, remote: true, class: 'remove-row btn btn-tiny' do
%i.icon-remove.cred %i.icon-remove.cred
.message= broadcast_message.message .message{ dir: 'auto' }= broadcast_message.message
= paginate @broadcast_messages = paginate @broadcast_messages
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
%hr %hr
- @projects.each do |project| - @projects.each do |project|
%p %p
= link_to project.name_with_namespace, [:admin, project], class: 'str-truncated' = link_to project.name_with_namespace, [:admin, project], class: 'str-truncated', dir: 'auto'
%span.light.pull-right %span.light.pull-right
#{time_ago_with_tooltip(project.created_at)} #{time_ago_with_tooltip(project.created_at)}
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
%hr %hr
- @users.each do |user| - @users.each do |user|
%p %p
= link_to [:admin, user], class: 'str-truncated' do = link_to [:admin, user], class: 'str-truncated', dir: 'auto' do
= user.name = user.name
%span.light.pull-right %span.light.pull-right
#{time_ago_with_tooltip(user.created_at)} #{time_ago_with_tooltip(user.created_at)}
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
%hr %hr
- @groups.each do |group| - @groups.each do |group|
%p %p
= link_to [:admin, group], class: 'str-truncated' do = link_to [:admin, group], class: 'str-truncated', dir: 'auto' do
= group.name = group.name
%span.light.pull-right %span.light.pull-right
#{time_ago_with_tooltip(group.created_at)} #{time_ago_with_tooltip(group.created_at)}
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
= f.label :name, class: 'control-label' do = f.label :name, class: 'control-label' do
Group name Group name
.col-sm-10 .col-sm-10
= f.text_field :name, placeholder: "Example Group", class: "form-control" = f.text_field :name, placeholder: "Example Group", class: "form-control", dir: 'auto'
.form-group.group-description-holder .form-group.group-description-holder
= f.label :description, "Details", class: 'control-label' = f.label :description, "Details", class: 'control-label'
.col-sm-10 .col-sm-10
= f.text_area :description, maxlength: 250, class: "form-control js-gfm-input", rows: 4 = f.text_area :description, maxlength: 250, class: "form-control js-gfm-input", rows: 4, dir: 'auto'
.form-group.group-description-holder .form-group.group-description-holder
= f.label :avatar, "Group avatar", class: 'control-label' = f.label :avatar, "Group avatar", class: 'control-label'
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
= f.label :path, class: 'control-label' do = f.label :path, class: 'control-label' do
%span Group path %span Group path
.col-sm-10 .col-sm-10
= f.text_field :path, placeholder: "example-group", class: "form-control danger" = f.text_field :path, placeholder: "example-group", class: "form-control danger", dir: 'auto'
.bs-callout.bs-callout-danger .bs-callout.bs-callout-danger
%ul %ul
%li Changing group path can have unintended side effects. %li Changing group path can have unintended side effects.
......
...@@ -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" = 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
...@@ -24,14 +24,14 @@ ...@@ -24,14 +24,14 @@
%h4 %h4
= link_to [:admin, group] do = link_to [:admin, group] do
%i.icon-folder-close %i.icon-folder-close{ dir: 'auto' }
= group.name = group.name
&rarr; &rarr;
%span.monospace %span.monospace
%strong #{group.path}/ %strong{ dir: 'auto' } #{group.path}/
.clearfix .clearfix
%p %p{ dir: 'auto' }
= truncate group.description, length: 150 = truncate group.description, length: 150
.clearfix .clearfix
%p.light %p.light
......
...@@ -15,20 +15,20 @@ ...@@ -15,20 +15,20 @@
= 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= @group.name %strong{ dir: 'auto' }= @group.name
%li %li
%span.light Path: %span.light Path:
%strong %strong{ dir: 'auto' }
= @group.path = @group.path
%li %li
%span.light Description: %span.light Description:
%strong %strong
= @group.description %span{ dir: 'auto' }= @group.description
%li %li
%span.light Created on: %span.light Created on:
%strong %strong{ dir: 'auto' }
= @group.created_at.stamp("March 1, 1999") = @group.created_at.stamp("March 1, 1999")
.panel.panel-default .panel.panel-default
...@@ -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 %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 %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(user)} %li{class: dom_class(user)}
.list-item-name .list-item-name
%strong %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
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
= form_tag admin_projects_path, method: :get, class: '' do = form_tag admin_projects_path, method: :get, class: '' do
.form-group .form-group
= label_tag :name, 'Name:' = label_tag :name, 'Name:'
= text_field_tag :name, params[:name], class: "form-control" = text_field_tag :name, params[:name], class: "form-control", dir: 'auto'
.form-group .form-group
= label_tag :namespace_id, "Namespace" = label_tag :namespace_id, "Namespace"
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
.list-item-name .list-item-name
%span{ class: visibility_level_color(project.visibility_level) } %span{ class: visibility_level_color(project.visibility_level) }
= visibility_level_icon(project.visibility_level) = visibility_level_icon(project.visibility_level)
= link_to project.name_with_namespace, [:admin, project] = link_to project.name_with_namespace, [:admin, project], dir: 'auto'
.pull-right .pull-right
%span.label.label-gray %span.label.label-gray
= repository_size(project) = repository_size(project)
......
...@@ -12,18 +12,18 @@ ...@@ -12,18 +12,18 @@
%ul.well-list %ul.well-list
%li %li
%span.light Name: %span.light Name:
%strong %strong{ dir: 'auto' }
= link_to @project.name, project_path(@project) = link_to @project.name, project_path(@project)
%li %li
%span.light Namespace: %span.light Namespace:
%strong %strong{ dir: 'auto' }
- if @project.namespace - if @project.namespace
= link_to @project.namespace.human_name, [:admin, @project.group || @project.owner] = link_to @project.namespace.human_name, [:admin, @project.group || @project.owner]
- else - else
Global Global
%li %li
%span.light Owned by: %span.light Owned by:
%strong %strong{ dir: 'auto' }
- if @project.owner - if @project.owner
= link_to @project.owner_name, [:admin, @project.owner] = link_to @project.owner_name, [:admin, @project.owner]
- else - else
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
%li %li
%span.light Created by: %span.light Created by:
%strong %strong{ dir: 'auto' }
= @project.creator.try(:name) || '(deleted)' = @project.creator.try(:name) || '(deleted)'
%li %li
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
- if @group - if @group
.panel.panel-default .panel.panel-default
.panel-heading .panel-heading
%strong #{@group.name} %strong{ dir: 'auto' } #{@group.name}
group members (#{@group.users_groups.count}) group members (#{@group.users_groups.count})
.pull-right .pull-right
= link_to admin_group_path(@group), class: 'btn btn-small' do = link_to admin_group_path(@group), class: 'btn btn-small' do
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
%li.users_project %li.users_project
.list-item-name .list-item-name
%strong %strong
= link_to user.name, admin_user_path(user) = link_to user.name, admin_user_path(user), dir: 'auto'
.pull-right .pull-right
- if users_project.owner? - if users_project.owner?
%span.light Owner %span.light Owner
......
...@@ -11,17 +11,17 @@ ...@@ -11,17 +11,17 @@
.form-group .form-group
= f.label :name, class: 'control-label' = f.label :name, class: 'control-label'
.col-sm-10 .col-sm-10
= f.text_field :name, required: true, autocomplete: "off", class: 'form-control' = f.text_field :name, required: true, autocomplete: "off", class: 'form-control', dir: 'auto'
%span.help-inline * required %span.help-inline * required
.form-group .form-group
= f.label :username, class: 'control-label' = f.label :username, class: 'control-label'
.col-sm-10 .col-sm-10
= f.text_field :username, required: true, autocomplete: "off", class: 'form-control' = f.text_field :username, required: true, autocomplete: "off", class: 'form-control', dir: 'auto'
%span.help-inline * required %span.help-inline * required
.form-group .form-group
= f.label :email, class: 'control-label' = f.label :email, class: 'control-label'
.col-sm-10 .col-sm-10
= f.text_field :email, required: true, autocomplete: "off", class: 'form-control' = f.text_field :email, required: true, autocomplete: "off", class: 'form-control', dir: 'auto'
%span.help-inline * required %span.help-inline * required
- if @user.new_record? - if @user.new_record?
...@@ -70,16 +70,16 @@ ...@@ -70,16 +70,16 @@
.form-group .form-group
= f.label :skype, class: 'control-label' = f.label :skype, class: 'control-label'
.col-sm-10= f.text_field :skype, class: 'form-control' .col-sm-10= f.text_field :skype, class: 'form-control', dir: 'auto'
.form-group .form-group
= f.label :linkedin, class: 'control-label' = f.label :linkedin, class: 'control-label'
.col-sm-10= f.text_field :linkedin, class: 'form-control' .col-sm-10= f.text_field :linkedin, class: 'form-control', dir: 'auto'
.form-group .form-group
= f.label :twitter, class: 'control-label' = f.label :twitter, class: 'control-label'
.col-sm-10= f.text_field :twitter, class: 'form-control' .col-sm-10= f.text_field :twitter, class: 'form-control', dir: 'auto'
.form-group .form-group
= f.label :website_url, 'Website', class: 'control-label' = f.label :website_url, 'Website', class: 'control-label'
.col-sm-10= f.text_field :website_url, class: 'form-control' .col-sm-10= f.text_field :website_url, class: 'form-control', dir: 'auto'
.form-actions .form-actions
- if @user.new_record? - if @user.new_record?
......
%h3.page-title %h3.page-title{ dir: 'auto' }
Edit user: #{@user.name} Edit user: #{@user.name}
.back-link .back-link
= link_to admin_user_path(@user) do = link_to admin_user_path(@user) do
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
%hr %hr
= form_tag admin_users_path, method: :get, class: 'form-inline' do = form_tag admin_users_path, method: :get, class: 'form-inline' do
.form-group .form-group
= search_field_tag :name, params[:name], placeholder: 'Name, email or username', class: 'form-control' = search_field_tag :name, params[:name], placeholder: 'Name, email or username', class: 'form-control', dir: 'auto'
= button_tag type: 'submit', class: 'btn btn-primary' do = button_tag type: 'submit', class: 'btn btn-primary' do
%i.icon-search %i.icon-search
%hr %hr
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
%i.icon-lock.cred %i.icon-lock.cred
- else - else
%i.icon-user.cgreen %i.icon-user.cgreen
= link_to user.name, [:admin, user] = link_to user.name, [:admin, user], dir: 'auto'
- if user.admin? - if user.admin?
%strong.cred (Admin) %strong.cred (Admin)
- if user == current_user - if user == current_user
......
%h3.page-title %h3.page-title{ dir: 'auto' }
New user New user
%hr %hr
= render 'form' = render 'form'
%h3.page-title %h3.page-title
User: User:
= @user.name %span{ dir: 'auto' }= @user.name
- if @user.blocked? - if @user.blocked?
%span.cred (Blocked) %span.cred (Blocked)
- if @user.admin - if @user.admin
...@@ -31,19 +31,19 @@ ...@@ -31,19 +31,19 @@
%ul.well-list %ul.well-list
%li %li
%span.light Name: %span.light Name:
%strong= @user.name %strong{ dir: 'auto' }= @user.name
%li %li
%span.light Username: %span.light Username:
%strong %strong{ dir: 'auto' }
= @user.username = @user.username
%li %li
%span.light Email: %span.light Email:
%strong %strong{ dir: 'auto' }
= mail_to @user.email = mail_to @user.email
- @user.emails.each do |email| - @user.emails.each do |email|
%li %li
%span.light Secondary email: %span.light Secondary email:
%strong= email.email %strong{ dir: 'auto' }= email.email
= link_to remove_email_admin_user_path(@user, email), data: { confirm: "Are you sure you want to remove #{email.email}?" }, method: :delete, class: "btn-tiny btn btn-remove pull-right", title: 'Remove secondary email', id: "remove_email_#{email.id}" do = link_to remove_email_admin_user_path(@user, email), data: { confirm: "Are you sure you want to remove #{email.email}?" }, method: :delete, class: "btn-tiny btn btn-remove pull-right", title: 'Remove secondary email', id: "remove_email_#{email.id}" do
%i.icon-remove %i.icon-remove
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
- if @user.created_by - if @user.created_by
%li %li
%span.light Created by: %span.light Created by:
%strong %strong{ dir: 'auto' }
= link_to @user.created_by.name, [:admin, @user.created_by] = link_to @user.created_by.name, [:admin, @user.created_by]
.col-md-6 .col-md-6
...@@ -167,7 +167,7 @@ ...@@ -167,7 +167,7 @@
- group = user_group.group - group = user_group.group
%li.users_group %li.users_group
%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) %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?
......
.panel.panel-default .panel.panel-default
.panel-heading.clearfix .panel-heading.clearfix
= search_field_tag :filter_group, nil, placeholder: 'Filter by name', class: 'dash-filter form-control' = search_field_tag :filter_group, nil, placeholder: 'Filter by name', class: 'dash-filter form-control', dir:'auto'
- if current_user.can_create_group? - if current_user.can_create_group?
= link_to new_group_path, class: "btn btn-new pull-right" do = link_to new_group_path, class: "btn btn-new pull-right" do
%i.icon-plus %i.icon-plus
......
= link_to project_path(project), class: dom_class(project) do = link_to project_path(project), class: dom_class(project), dir: "auto" do
.dash-project-access-icon .dash-project-access-icon
= visibility_level_icon(project.visibility_level) = visibility_level_icon(project.visibility_level)
%span.str-truncated %span.str-truncated
......
.panel.panel-default .panel.panel-default
.panel-heading.clearfix .panel-heading.clearfix
= search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'dash-filter form-control' = search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'dash-filter form-control', dir:'auto'
- if current_user.can_create_project? - if current_user.can_create_project?
= link_to new_project_path, class: "btn btn-new pull-right" do = link_to new_project_path, class: "btn btn-new pull-right" do
%i.icon-plus %i.icon-plus
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
%i.icon-tag %i.icon-tag
= tag.name = tag.name
- if project.description.present? - if project.description.present?
%p= truncate project.description, length: 100 %p{ dir: 'auto' }= truncate project.description, length: 100
.last-activity .last-activity
%span.light Last activity: %span.light Last activity:
%span.date= project_last_activity(project) %span.date= project_last_activity(project)
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<%= f.email_field :email %></div> <%= f.email_field :email %></div>
<div><%= f.label :name %><br /> <div><%= f.label :name %><br />
<%= f.text_field :name %></div> <%= f.text_field :name, dir: 'auto' %></div>
<div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br /> <div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
<%= f.password_field :password %></div> <%= f.password_field :password %></div>
......
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
.devise-errors .devise-errors
= devise_error_messages! = devise_error_messages!
%div %div
= f.text_field :name, class: "form-control top", placeholder: "Name", required: true = f.text_field :name, class: "form-control top", placeholder: "Name", required: true, dir: :auto
%div %div
= f.text_field :username, class: "form-control middle", placeholder: "Username", required: true = f.text_field :username, class: "form-control middle", placeholder: "Username", required: true, dir: :auto
%div %div
= f.email_field :email, class: "form-control middle", placeholder: "Email", required: true = f.email_field :email, class: "form-control middle", placeholder: "Email", required: true
%div %div
......
= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| = form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
= f.text_field :login, class: "form-control top", placeholder: "Username or Email", autofocus: "autofocus" = f.text_field :login, class: "form-control top", placeholder: "Username or Email", autofocus: "autofocus", dir: 'auto'
= f.password_field :password, class: "form-control bottom", placeholder: "Password" = f.password_field :password, class: "form-control bottom", placeholder: "Password"
- if devise_mapping.rememberable? - if devise_mapping.rememberable?
.clearfix.append-bottom-10 .clearfix.append-bottom-10
......
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
.commit-row-title .commit-row-title
= link_to commit[:id][0..8], project_commit_path(project, commit[:id]), class: "commit_short_id", alt: '' = link_to commit[:id][0..8], project_commit_path(project, commit[:id]), class: "commit_short_id", alt: ''
&nbsp; &nbsp;
= gfm event_commit_title(commit[:message]), project %span{ dir: 'auto' }= gfm event_commit_title(commit[:message]), project
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
.event-last-push-text .event-last-push-text
%span You pushed to %span You pushed to
= link_to project_commits_path(event.project, event.ref_name) do = link_to project_commits_path(event.project, event.ref_name) do
%strong= event.ref_name %strong{ dir: 'auto' }= event.ref_name
at at
%strong= link_to_project event.project %strong= link_to_project event.project
#{time_ago_with_tooltip(event.created_at)} #{time_ago_with_tooltip(event.created_at)}
......
...@@ -12,5 +12,5 @@ ...@@ -12,5 +12,5 @@
= event.project_name = event.project_name
- if event.target.respond_to?(:title) - if event.target.respond_to?(:title)
.event-body .event-body
.event-note .event-note{ dir: 'auto' }
= event.target.title = event.target.title
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
= event.project_name = event.project_name
.event-body .event-body
.event-note .event-note{ dir: 'auto' }
.md .md
%i.icon-comment-alt.event-note-icon %i.icon-comment-alt.event-note-icon
= event_note(event.target.note) = event_note(event.target.note)
......
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
%span.author_name= link_to_author event %span.author_name= link_to_author event
%span.event_label.pushed #{event.push_action_name} #{event.ref_type} %span.event_label.pushed #{event.push_action_name} #{event.ref_type}
- if event.rm_ref? - if event.rm_ref?
%strong= event.ref_name %strong{ dir: 'auto' }= event.ref_name
- else - else
= link_to project_commits_path(event.project, event.ref_name) do = link_to project_commits_path(event.project, event.ref_name) do
%strong= event.ref_name %strong{ dir: 'auto' }= event.ref_name
at at
= link_to_project event.project = link_to_project event.project
......
...@@ -15,12 +15,12 @@ ...@@ -15,12 +15,12 @@
= f.label :name, class: 'control-label' do = f.label :name, class: 'control-label' do
Group name Group name
.col-sm-10 .col-sm-10
= f.text_field :name, placeholder: "Ex. OpenSource", class: "form-control left" = f.text_field :name, placeholder: "Ex. OpenSource", class: "form-control left", dir: 'auto'
.form-group.group-description-holder .form-group.group-description-holder
= f.label :description, "Details", class: 'control-label' = f.label :description, "Details", class: 'control-label'
.col-sm-10 .col-sm-10
= f.text_area :description, maxlength: 250, class: "form-control js-gfm-input", rows: 4 = f.text_area :description, maxlength: 250, class: "form-control js-gfm-input", rows: 4, dir: 'auto'
.form-group .form-group
.col-sm-2 .col-sm-2
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
- else - else
= link_to 'Close Milestone', group_milestone_path(@group, milestone.safe_title, title: milestone.title, milestone: {state_event: :close }), method: :put, class: "btn btn-small btn-close" = link_to 'Close Milestone', group_milestone_path(@group, milestone.safe_title, title: milestone.title, milestone: {state_event: :close }), method: :put, class: "btn btn-small btn-close"
%h4 %h4
= link_to_gfm truncate(milestone.title, length: 100), group_milestone_path(@group, milestone.safe_title, title: milestone.title) %span{ dir: :auto }= link_to_gfm truncate(milestone.title, length: 100), group_milestone_path(@group, milestone.safe_title, title: milestone.title)
%div %div
%div %div
= link_to group_milestone_path(@group, milestone.safe_title, title: milestone.title) do = link_to group_milestone_path(@group, milestone.safe_title, title: milestone.title) do
......
...@@ -3,15 +3,15 @@ ...@@ -3,15 +3,15 @@
.alert.alert-danger .alert.alert-danger
%span= @group.errors.full_messages.first %span= @group.errors.full_messages.first
.form-group .form-group
= f.label :name, class: 'control-label' do = f.label :name, class: 'control-label', dir: :auto do
Group name Group name
.col-sm-10 .col-sm-10
= f.text_field :name, placeholder: "Ex. OpenSource", class: "form-control", tabindex: 1, autofocus: true = f.text_field :name, placeholder: "Ex. OpenSource", class: "form-control", tabindex: 1, autofocus: true, dir: :auto
.form-group.group-description-holder .form-group.group-description-holder
= f.label :description, "Details", class: 'control-label' = f.label :description, "Details", class: 'control-label'
.col-sm-10 .col-sm-10
= f.text_area :description, maxlength: 250, class: "form-control js-gfm-input", rows: 4, tabindex: 2 = f.text_area :description, maxlength: 250, class: "form-control js-gfm-input", rows: 4, tabindex: 2, dir: :auto
.form-group.group-description-holder .form-group.group-description-holder
= f.label :avatar, "Group avatar", class: 'control-label' = f.label :avatar, "Group avatar", class: 'control-label'
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
%h3.page-title %h3.page-title
= @group.name = @group.name
- if @group.description.present? - if @group.description.present?
%p %p{ dir: :auto }
= auto_link @group.description, link: :urls = auto_link @group.description, link: :urls
= render "projects", projects: @projects = render "projects", projects: @projects
- if current_user - if current_user
......
- if broadcast_message.present? - if broadcast_message.present?
.broadcast-message{ style: broadcast_styling(broadcast_message) } .broadcast-message{ style: broadcast_styling(broadcast_message), dir: 'auto' }
%i.icon-bullhorn %i.icon-bullhorn
= broadcast_message.message = broadcast_message.message
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
= link_to root_path, class: "home has_bottom_tooltip", title: "Dashboard" do = link_to root_path, class: "home has_bottom_tooltip", title: "Dashboard" do
%h1 GITLAB %h1 GITLAB
%span.separator %span.separator
%h1.title= title %h1.title{ dir: 'auto' }= title
%button.navbar-toggle{"data-target" => ".navbar-collapse", "data-toggle" => "collapse", type: "button"} %button.navbar-toggle{"data-target" => ".navbar-collapse", "data-toggle" => "collapse", type: "button"}
%span.sr-only Toggle navigation %span.sr-only Toggle navigation
......
.search .search
= form_tag search_path, method: :get, class: 'navbar-form pull-left' do |f| = form_tag search_path, method: :get, class: 'navbar-form pull-left' do |f|
= search_field_tag "search", nil, placeholder: search_placeholder, class: "search-input" = search_field_tag "search", nil, placeholder: search_placeholder, class: "search-input", dir: :auto
= hidden_field_tag :group_id, @group.try(:id) = hidden_field_tag :group_id, @group.try(:id)
- if @project && @project.persisted? - if @project && @project.persisted?
= hidden_field_tag :project_id, @project.id = hidden_field_tag :project_id, @project.id
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
.form-group .form-group
= f.label :title, class: 'control-label' = f.label :title, class: 'control-label'
.col-sm-10= f.text_field :title, class: "form-control" .col-sm-10= f.text_field :title, class: "form-control", dir: :auto
.form-group .form-group
= f.label :key, class: 'control-label' = f.label :key, class: 'control-label'
.col-sm-10 .col-sm-10
......
%li %li
= link_to profile_key_path(key) do = link_to profile_key_path(key) do
%strong= key.title %strong{ dir: :auto }= key.title
%span %span
(#{key.fingerprint}) (#{key.fingerprint})
%span.cgray %span.cgray
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
%ul.well-list %ul.well-list
%li %li
%span.light Title: %span.light Title:
%strong= @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= @key.created_at.stamp("Aug 21, 2011")
......
...@@ -19,21 +19,21 @@ ...@@ -19,21 +19,21 @@
.form-group .form-group
= f.label :name, class: "control-label" = f.label :name, class: "control-label"
.col-sm-10 .col-sm-10
= f.text_field :name, class: "form-control", required: true = f.text_field :name, class: "form-control", required: true, dir: 'auto'
%span.help-block Enter your name, so people you know can recognize you. %span.help-block Enter your name, so people you know can recognize you.
.form-group .form-group
= f.label :email, class: "control-label" = f.label :email, class: "control-label"
.col-sm-10 .col-sm-10
- if @user.ldap_user? - if @user.ldap_user?
= f.text_field :email, class: "form-control", required: true, readonly: true = f.text_field :email, class: "form-control", required: true, readonly: true, dir: 'auto'
%span.help-block.light %span.help-block.light
Email is read-only for LDAP user Email is read-only for LDAP user
- else - else
- if @user.temp_oauth_email? - if @user.temp_oauth_email?
= f.text_field :email, class: "form-control", required: true, value: nil = f.text_field :email, class: "form-control", required: true, value: nil, dir: 'auto'
- else - else
= f.text_field :email, class: "form-control", required: true = f.text_field :email, class: "form-control", required: true, dir: 'auto'
- if @user.unconfirmed_email.present? - if @user.unconfirmed_email.present?
%span.help-block %span.help-block
Please click the link in the confirmation email before continuing, it was send to Please click the link in the confirmation email before continuing, it was send to
...@@ -43,20 +43,20 @@ ...@@ -43,20 +43,20 @@
%span.help-block We also use email for avatar detection if no avatar is uploaded. %span.help-block We also use email for avatar detection if no avatar is uploaded.
.form-group .form-group
= f.label :skype, class: "control-label" = f.label :skype, class: "control-label"
.col-sm-10= f.text_field :skype, class: "form-control" .col-sm-10= f.text_field :skype, class: "form-control", dir: 'auto'
.form-group .form-group
= f.label :linkedin, class: "control-label" = f.label :linkedin, class: "control-label"
.col-sm-10= f.text_field :linkedin, class: "form-control" .col-sm-10= f.text_field :linkedin, class: "form-control", dir: 'auto'
.form-group .form-group
= f.label :twitter, class: "control-label" = f.label :twitter, class: "control-label"
.col-sm-10= f.text_field :twitter, class: "form-control" .col-sm-10= f.text_field :twitter, class: "form-control", dir: 'auto'
.form-group .form-group
= f.label :website_url, 'Website', class: "control-label" = f.label :website_url, 'Website', class: "control-label"
.col-sm-10= f.text_field :website_url, class: "form-control" .col-sm-10= f.text_field :website_url, class: "form-control", dir: 'auto'
.form-group .form-group
= f.label :bio, class: "control-label" = f.label :bio, class: "control-label"
.col-sm-10 .col-sm-10
= f.text_area :bio, rows: 6, class: "form-control", maxlength: 250 = f.text_area :bio, rows: 6, class: "form-control", maxlength: 250, dir: 'auto'
%span.help-block Tell us about yourself in fewer than 250 characters. %span.help-block Tell us about yourself in fewer than 250 characters.
.col-md-5 .col-md-5
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
.project-home-row .project-home-row
.project-home-desc .project-home-desc
- if @project.description.present? - if @project.description.present?
= auto_link ERB::Util.html_escape(@project.description), link: :urls %span{ dir: "auto" }= auto_link ERB::Util.html_escape(@project.description), link: :urls
- if can?(current_user, :admin_project, @project) - if can?(current_user, :admin_project, @project)
&ndash; &ndash;
= link_to 'Edit', edit_project_path = link_to 'Edit', edit_project_path
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
%strong= 'Title *' %strong= 'Title *'
.col-sm-10 .col-sm-10
= f.text_field :title, maxlength: 255, autofocus: true, = f.text_field :title, maxlength: 255, autofocus: true,
class: 'form-control pad js-gfm-input', required: true class: 'form-control pad js-gfm-input', required: true, dir: :auto
.form-group.issuable-description .form-group.issuable-description
= f.label :description, 'Description', class: 'control-label' = f.label :description, 'Description', class: 'control-label'
.col-sm-10 .col-sm-10
......
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
%input#zen-toggle-comment{ tabindex: '-1', type: 'checkbox' } %input#zen-toggle-comment{ tabindex: '-1', type: 'checkbox' }
.zen-backdrop .zen-backdrop
- classes << ' js-gfm-input markdown-area' - classes << ' js-gfm-input markdown-area'
= f.text_area attr, class: classes, placeholder: 'Leave a comment' = f.text_area attr, class: classes, placeholder: 'Leave a comment', dir: :auto
%label{ for: 'zen-toggle-comment', class: 'expand' } Edit in fullscreen %label{ for: 'zen-toggle-comment', class: 'expand' } Edit in fullscreen
%label{ for: 'zen-toggle-comment', class: 'collapse' } %label{ for: 'zen-toggle-comment', class: 'collapse' }
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
%li(class="js-branch-#{branch.name}") %li(class="js-branch-#{branch.name}")
%h4 %h4
= link_to project_tree_path(@project, branch.name) do = link_to project_tree_path(@project, branch.name) do
%strong.str-truncated= branch.name %strong.str-truncated{ dir: :auto }= branch.name
- if branch.name == @repository.root_ref - if branch.name == @repository.root_ref
%span.label.label-info default %span.label.label-info default
- if @project.protected_branch? branch.name - if @project.protected_branch? branch.name
......
...@@ -9,11 +9,11 @@ ...@@ -9,11 +9,11 @@
.form-group .form-group
= label_tag :branch_name, 'Name for new branch', class: 'control-label' = label_tag :branch_name, 'Name for new branch', class: 'control-label'
.col-sm-10 .col-sm-10
= text_field_tag :branch_name, params[:branch_name], placeholder: 'enter new branch name', required: true, tabindex: 1, class: 'form-control' = text_field_tag :branch_name, params[:branch_name], placeholder: 'enter new branch name', required: true, tabindex: 1, class: 'form-control', dir: :auto
.form-group .form-group
= label_tag :ref, 'Create from', class: 'control-label' = label_tag :ref, 'Create from', class: 'control-label'
.col-sm-10 .col-sm-10
= text_field_tag :ref, params[:ref], placeholder: 'existing branch name, tag or commit SHA', required: true, tabindex: 2, class: 'form-control' = text_field_tag :ref, params[:ref], placeholder: 'existing branch name, tag or commit SHA', required: true, tabindex: 2, class: 'form-control', dir: :auto
.form-actions .form-actions
= submit_tag 'Create branch', class: 'btn btn-create', tabindex: 3 = submit_tag 'Create branch', class: 'btn btn-create', tabindex: 3
= link_to 'Cancel', project_branches_path(@project), class: 'btn btn-cancel' = link_to 'Cancel', project_branches_path(@project), class: 'btn btn-cancel'
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
Exists in Exists in
%span %span
- branch = commit_default_branch(@project, @branches) - branch = commit_default_branch(@project, @branches)
= link_to(branch, project_tree_path(@project, branch)) = link_to(branch, project_tree_path(@project, branch), dir: "auto")
- if @branches.any? - if @branches.any?
and in and in
= link_to("#{pluralize(@branches.count, "other branch")}", "#", class: "js-details-expand") = link_to("#{pluralize(@branches.count, "other branch")}", "#", class: "js-details-expand")
...@@ -51,8 +51,8 @@ ...@@ -51,8 +51,8 @@
= commit_branches_links(@project, @branches) = commit_branches_links(@project, @branches)
.commit-box .commit-box
%h3.commit-title %h3.commit-title{ dir: "auto" }
= gfm escape_once(@commit.title) = gfm escape_once(@commit.title)
- if @commit.description.present? - if @commit.description.present?
%pre.commit-description %pre.commit-description{ dir: "auto" }
= preserve(gfm(escape_once(@commit.description))) = preserve(gfm(escape_once(@commit.description)))
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
= link_to commit.short_id(8), project_commit_path(project, commit), class: "commit_short_id" = link_to commit.short_id(8), project_commit_path(project, commit), class: "commit_short_id"
&nbsp; &nbsp;
%span.str-truncated %span.str-truncated
= link_to_gfm commit.title, project_commit_path(project, commit.id), class: "commit-row-message" = link_to_gfm commit.title, project_commit_path(project, commit.id), class: "commit-row-message", dir: 'auto'
- if commit.description? - if commit.description?
%a.text-expander.js-toggle-button ... %a.text-expander.js-toggle-button ...
......
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
= link_to commit.short_id(8), project_commit_path(project, commit), class: "commit_short_id" = link_to commit.short_id(8), project_commit_path(project, commit), class: "commit_short_id"
&nbsp; &nbsp;
%span.str-truncated %span.str-truncated
= link_to_gfm commit.title, project_commit_path(project, commit.id), class: "commit-row-message" = link_to_gfm commit.title, project_commit_path(project, commit.id), class: "commit-row-message", dir: 'auto'
.pull-right .pull-right
#{time_ago_with_tooltip(commit.committed_date)} #{time_ago_with_tooltip(commit.committed_date)}
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
.form-group .form-group
.input-group.inline-input-group .input-group.inline-input-group
%span.input-group-addon from %span.input-group-addon from
= text_field_tag :from, params[:from], class: "form-control" = text_field_tag :from, params[:from], class: "form-control", dir: 'auto'
= "..." = "..."
.form-group .form-group
.input-group.inline-input-group .input-group.inline-input-group
%span.input-group-addon to %span.input-group-addon to
= text_field_tag :to, params[:to], class: "form-control" = text_field_tag :to, params[:to], class: "form-control", dir: 'auto'
&nbsp; &nbsp;
= submit_tag "Compare", class: "btn btn-create commits-compare-btn" = submit_tag "Compare", class: "btn btn-create commits-compare-btn"
- if compare_to_mr_button? - if compare_to_mr_button?
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
= f.label :name, class: 'control-label' do = f.label :name, class: 'control-label' do
Project name Project name
.col-sm-10 .col-sm-10
= f.text_field :name, placeholder: "Example Project", class: "form-control" = f.text_field :name, placeholder: "Example Project", class: "form-control", dir: 'auto'
.form-group .form-group
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
Project description Project description
%span.light (optional) %span.light (optional)
.col-sm-10 .col-sm-10
= f.text_area :description, placeholder: "Awesome project", class: "form-control", rows: 3, maxlength: 250 = f.text_area :description, placeholder: "Awesome project", class: "form-control", rows: 3, maxlength: 250, dir: 'auto'
- if @project.repository.exists? && @project.repository.branch_names.any? - if @project.repository.exists? && @project.repository.branch_names.any?
.form-group .form-group
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
.form-group .form-group
= f.label :tag_list, "Tags", class: 'control-label' = f.label :tag_list, "Tags", class: 'control-label'
.col-sm-10 .col-sm-10
= f.text_field :tag_list, maxlength: 2000, class: "form-control" = f.text_field :tag_list, maxlength: 2000, class: "form-control", dir: :auto
%p.hint Separate tags with commas. %p.hint Separate tags with commas.
%fieldset.features %fieldset.features
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
Commit message Commit message
.col-sm-10 .col-sm-10
= render 'shared/commit_message_container', {textarea: text_area_tag('commit_message', '', = render 'shared/commit_message_container', {textarea: text_area_tag('commit_message', '',
placeholder: "Update #{@blob.name}", required: true, rows: 3, class: 'form-control')} placeholder: "Update #{@blob.name}", required: true, rows: 3, class: 'form-control', dir: 'auto')}
.form-actions .form-actions
= hidden_field_tag 'last_commit', @last_commit = hidden_field_tag 'last_commit', @last_commit
= hidden_field_tag 'content', '', id: "file-content" = hidden_field_tag 'content', '', id: "file-content"
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
%i.icon.icon-list %i.icon.icon-list
= form_tag project_issues_path(@project), method: :get, id: "issue_search_form", class: 'pull-left issue-search-form' do = form_tag project_issues_path(@project), method: :get, id: "issue_search_form", class: 'pull-left issue-search-form' do
.append-right-10.hidden-xs.hidden-sm .append-right-10.hidden-xs.hidden-sm
= search_field_tag :issue_search, params[:issue_search], { placeholder: 'Filter by title or description', class: 'form-control issue_search search-text-input input-mn-300' } = search_field_tag :issue_search, params[:issue_search], { placeholder: 'Filter by title or description', class: 'form-control issue_search search-text-input input-mn-300', dir: :auto }
= hidden_field_tag :state, params['state'] = hidden_field_tag :state, params['state']
= hidden_field_tag :scope, params['scope'] = hidden_field_tag :scope, params['scope']
= hidden_field_tag :assignee_id, params['assignee_id'] = hidden_field_tag :assignee_id, params['assignee_id']
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
.issue-title .issue-title
%span.light= "##{issue.iid}" %span.light= "##{issue.iid}"
%span.str-truncated %span.str-truncated
= link_to_gfm issue.title, project_issue_path(issue.project, issue), class: "row_title" = link_to_gfm issue.title, project_issue_path(issue.project, issue), class: "row_title", dir: 'auto'
- if issue.closed? - if issue.closed?
%small.pull-right %small.pull-right
CLOSED CLOSED
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
- if issue.milestone - if issue.milestone
%span %span
%i.icon-time %i.icon-time
= issue.milestone.title %span{ dir: 'auto' }= issue.milestone.title
.pull-right .pull-right
%small updated #{time_ago_with_tooltip(issue.updated_at, 'bottom', 'issue_update_ago')} %small updated #{time_ago_with_tooltip(issue.updated_at, 'bottom', 'issue_update_ago')}
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
- if @issue.milestone - if @issue.milestone
| |
%span.light Milestone %span.light Milestone
= link_to project_milestone_path(@project, @issue.milestone) do = link_to project_milestone_path(@project, @issue.milestone), dir: :auto do
= @issue.milestone.title = @issue.milestone.title
.issue-box{ class: issue_box_class(@issue) } .issue-box{ class: issue_box_class(@issue) }
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
.creator .creator
Created by #{link_to_member(@project, @issue.author)} #{time_ago_with_tooltip(@issue.created_at)} Created by #{link_to_member(@project, @issue.author)} #{time_ago_with_tooltip(@issue.created_at)}
%h4.title %h4.title{ dir: :auto }
= gfm escape_once(@issue.title) = gfm escape_once(@issue.title)
- if @issue.description.present? - if @issue.description.present?
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
.form-group .form-group
= f.label :title, class: 'control-label' = f.label :title, class: 'control-label'
.col-sm-10 .col-sm-10
= f.text_field :title, class: "form-control", required: true = f.text_field :title, class: "form-control", required: true, dir: :auto
.form-group .form-group
= f.label :color, "Background Color", class: 'control-label' = f.label :color, "Background Color", class: 'control-label'
.col-sm-10 .col-sm-10
......
%h3 %h3
Edit label Edit label
%span.light #{@label.name} %span.light{ dir: :auto } #{@label.name}
.back-link .back-link
= link_to project_labels_path(@project) do = link_to project_labels_path(@project) do
&larr; To labels list &larr; To labels list
......
%li{ class: mr_css_classes(merge_request) } %li{ class: mr_css_classes(merge_request) }
.merge-request-title .merge-request-title
%span.light= "##{merge_request.iid}" %span.light= "##{merge_request.iid}"
= link_to_gfm truncate(merge_request.title, length: 80), project_merge_request_path(merge_request.target_project, merge_request), class: "row_title" = link_to_gfm truncate(merge_request.title, length: 80), project_merge_request_path(merge_request.target_project, merge_request), class: "row_title", dir: "auto"
- if merge_request.merged? - if merge_request.merged?
%small.pull-right %small.pull-right
%i.icon-ok %i.icon-ok
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
.light .light
= f.label :title do = f.label :title do
Title * Title *
= f.text_field :title, class: "form-control input-lg js-gfm-input", maxlength: 255, rows: 5, required: true = f.text_field :title, class: "form-control input-lg js-gfm-input", maxlength: 255, rows: 5, required: true, dir: :auto
.form-group .form-group
.light .light
= f.label :description, "Description" = f.label :description, "Description"
......
...@@ -11,14 +11,14 @@ ...@@ -11,14 +11,14 @@
.creator .creator
Created by #{link_to_member(@project, @merge_request.author)} #{time_ago_with_tooltip(@merge_request.created_at)} Created by #{link_to_member(@project, @merge_request.author)} #{time_ago_with_tooltip(@merge_request.created_at)}
%h4.title %h4.title{ dir: 'auto' }
= gfm escape_once(@merge_request.title) = gfm escape_once(@merge_request.title)
- if @merge_request.description.present? - if @merge_request.description.present?
.description .description
.wiki .wiki
= preserve do = preserve do
= markdown @merge_request.description %span{ dir: 'auto' }= markdown @merge_request.description
.context .context
%cite.cgray %cite.cgray
......
...@@ -16,12 +16,12 @@ ...@@ -16,12 +16,12 @@
.form-group .form-group
= f.label :title, "Title", class: "control-label" = f.label :title, "Title", class: "control-label"
.col-sm-10 .col-sm-10
= f.text_field :title, maxlength: 255, class: "form-control" = f.text_field :title, maxlength: 255, class: "form-control", dir: "auto"
%p.hint Required %p.hint Required
.form-group .form-group
= f.label :description, "Description", class: "control-label" = f.label :description, "Description", class: "control-label"
.col-sm-10 .col-sm-10
= f.text_area :description, maxlength: 65535, class: "form-control markdown-area", rows: 10 = f.text_area :description, maxlength: 65535, class: "form-control markdown-area", rows: 10, dir: :auto
.hint .hint
.pull-left Milestones are parsed with #{link_to "GitLab Flavored Markdown", help_page_path("markdown", "markdown"), target: '_blank'}. .pull-left Milestones are parsed with #{link_to "GitLab Flavored Markdown", help_page_path("markdown", "markdown"), target: '_blank'}.
.pull-left Attach images (JPG, PNG, GIF) by dragging & dropping or #{link_to "selecting them", '#', class: 'markdown-selector' }. .pull-left Attach images (JPG, PNG, GIF) by dragging & dropping or #{link_to "selecting them", '#', class: 'markdown-selector' }.
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
Edit Edit
= link_to 'Close Milestone', project_milestone_path(@project, milestone, milestone: {state_event: :close }), method: :put, remote: true, class: "btn btn-small btn-close" = link_to 'Close Milestone', project_milestone_path(@project, milestone, milestone: {state_event: :close }), method: :put, remote: true, class: "btn btn-small btn-close"
%h4 %h4
= link_to_gfm truncate(milestone.title, length: 100), project_milestone_path(milestone.project, milestone) = link_to_gfm truncate(milestone.title, length: 100), project_milestone_path(milestone.project, milestone), dir: "auto"
- if milestone.expired? and not milestone.closed? - if milestone.expired? and not milestone.closed?
%span.cred (Expired) %span.cred (Expired)
%small %small
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
.creator .creator
= @milestone.expires_at = @milestone.expires_at
%h4.title %h4.title{ dir: :auto }
= gfm escape_once(@milestone.title) = gfm escape_once(@milestone.title)
- if @milestone.description.present? - if @milestone.description.present?
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
.project-network .project-network
.controls .controls
= form_tag project_network_path(@project, @id), method: :get, class: 'form-inline network-form' do |f| = form_tag project_network_path(@project, @id), method: :get, class: 'form-inline network-form' do |f|
= text_field_tag :extended_sha1, @options[:extended_sha1], placeholder: "Input an extended SHA1 syntax", class: 'search-input form-control input-mx-250 search-sha' = text_field_tag :extended_sha1, @options[:extended_sha1], placeholder: "Input an extended SHA1 syntax", class: 'search-input form-control input-mx-250 search-sha', dir: :auto
= button_tag type: 'submit', class: 'btn btn-success btn-search-sha' do = button_tag type: 'submit', class: 'btn btn-success btn-search-sha' do
%i.icon-search %i.icon-search
.inline.prepend-left-20 .inline.prepend-left-20
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
= f.label :name, class: 'control-label' do = f.label :name, class: 'control-label' do
%strong Project name %strong Project name
.col-sm-10 .col-sm-10
= f.text_field :name, placeholder: "Example Project", class: "form-control", tabindex: 1, autofocus: true = f.text_field :name, placeholder: "Example Project", class: "form-control", tabindex: 1, autofocus: true, dir: 'auto'
- if current_user.can_select_namespace? - if current_user.can_select_namespace?
.form-group .form-group
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
%span Repository name %span Repository name
.col-sm-10 .col-sm-10
.input-group .input-group
= f.text_field :path, class: 'form-control' = f.text_field :path, class: 'form-control', dir: 'auto'
%span.input-group-addon .git %span.input-group-addon .git
.js-toggle-container .js-toggle-container
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
Description Description
%span.light (optional) %span.light (optional)
.col-sm-10 .col-sm-10
= f.text_area :description, placeholder: "Awesome project", class: "form-control", rows: 3, maxlength: 250, tabindex: 3 = f.text_area :description, placeholder: "Awesome project", class: "form-control", rows: 3, maxlength: 250, tabindex: 3, dir: 'auto'
= render "visibility_level", f: f, visibility_level: gitlab_config.default_projects_features.visibility_level, can_change_visibility_level: true = render "visibility_level", f: f, visibility_level: gitlab_config.default_projects_features.visibility_level, can_change_visibility_level: true
.form-actions .form-actions
......
...@@ -9,10 +9,10 @@ ...@@ -9,10 +9,10 @@
.input-group .input-group
%span.input-group-addon %span.input-group-addon
= @path[-1] == "/" ? @path : @path + "/" = @path[-1] == "/" ? @path : @path + "/"
= text_field_tag 'file_name', params[:file_name], placeholder: "sample.rb", required: true, class: 'form-control' = text_field_tag 'file_name', params[:file_name], placeholder: "sample.rb", required: true, class: 'form-control', dir: 'auto'
%span.input-group-addon %span.input-group-addon
on on
%span= @ref %span{ dir: "auto" }= @ref
.form-group.commit_message-group .form-group.commit_message-group
= label_tag :encoding, class: "control-label" do = label_tag :encoding, class: "control-label" do
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
Commit message Commit message
.col-sm-10 .col-sm-10
= render 'shared/commit_message_container', {textarea: text_area_tag('commit_message', = render 'shared/commit_message_container', {textarea: text_area_tag('commit_message',
params[:commit_message], placeholder: "Added new file", required: true, rows: 3, class: 'form-control')} params[:commit_message], placeholder: "Added new file", required: true, rows: 3, class: 'form-control', dir: :auto)}
.file-holder .file-holder
.file-title .file-title
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
%div %div
.note-write-holder .note-write-holder
= render 'projects/zen', f: f, attr: :note, = render 'projects/zen', f: f, attr: :note,
classes: 'note_text js-note-text' classes: 'note_text js-note-text', dir: :auto
.light.clearfix .light.clearfix
.pull-left Comments are parsed with #{link_to "GitLab Flavored Markdown", help_page_path("markdown", "markdown"),{ target: '_blank', tabindex: -1 }} .pull-left Comments are parsed with #{link_to "GitLab Flavored Markdown", help_page_path("markdown", "markdown"),{ target: '_blank', tabindex: -1 }}
.pull-right Attach images (JPG, PNG, GIF) by dragging &amp; dropping or #{link_to "selecting them", '#', class: 'markdown-selector', tabindex: -1 }. .pull-right Attach images (JPG, PNG, GIF) by dragging &amp; dropping or #{link_to "selecting them", '#', class: 'markdown-selector', tabindex: -1 }.
......
...@@ -32,13 +32,13 @@ ...@@ -32,13 +32,13 @@
.note-body .note-body
.note-text .note-text{ dir: 'auto' }
= preserve do = preserve do
= markdown(note.note, {no_header_anchors: true}) = markdown(note.note, {no_header_anchors: true})
.note-edit-form .note-edit-form
= form_for note, url: project_note_path(@project, note), method: :put, remote: true, authenticity_token: true do |f| = form_for note, url: project_note_path(@project, note), method: :put, remote: true, authenticity_token: true do |f|
= f.text_area :note, class: 'note_text js-note-text js-gfm-input turn-on' = f.text_area :note, class: 'note_text js-note-text js-gfm-input turn-on', dir: :auto
.form-actions.clearfix .form-actions.clearfix
= f.submit 'Save changes', class: "btn btn-primary btn-save js-comment-button" = f.submit 'Save changes', class: "btn btn-primary btn-save js-comment-button"
......
...@@ -56,9 +56,9 @@ ...@@ -56,9 +56,9 @@
%p %p
%span.light Owned by %span.light Owned by
- if @project.group - if @project.group
#{link_to @project.group.name, @project.group} group #{link_to @project.group.name, @project.group, dir: "auto"} group
- else - else
#{link_to @project.owner_name, @project.owner} #{link_to @project.owner_name, @project.owner, dir: "auto"}
- if @project.gitlab_ci? - if @project.gitlab_ci?
......
%li %li
%h4.snippet-title %h4.snippet-title
= link_to reliable_snippet_path(snippet) do = link_to reliable_snippet_path(snippet) do
= truncate(snippet.title, length: 60) %span{ dir: "auto" }= truncate(snippet.title, length: 60)
%span.cgray.monospace.tiny.pull-right %span.cgray.monospace.tiny.pull-right{ dir: "auto" }
= snippet.file_name = snippet.file_name
.snippet-info .snippet-info
...@@ -10,6 +10,6 @@ ...@@ -10,6 +10,6 @@
%span %span
by by
= image_tag avatar_icon(snippet.author_email), class: "avatar avatar-inline s16" = image_tag avatar_icon(snippet.author_email), class: "avatar avatar-inline s16"
= snippet.author_name %span{ dir: "auto" }= snippet.author_name
%span.light %span.light
#{time_ago_with_tooltip(snippet.created_at)} #{time_ago_with_tooltip(snippet.created_at)}
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
by by
= link_to user_path(@snippet.author) do = link_to user_path(@snippet.author) do
= image_tag avatar_icon(@snippet.author_email), class: "avatar avatar-inline s16" = image_tag avatar_icon(@snippet.author_email), class: "avatar avatar-inline s16"
= @snippet.author_name %span{ dir: "auto" }= @snippet.author_name
.back-link .back-link
= link_to project_snippets_path(@project) do = link_to project_snippets_path(@project) do
......
...@@ -9,16 +9,16 @@ ...@@ -9,16 +9,16 @@
.form-group .form-group
= label_tag :tag_name, 'Name for new tag', class: 'control-label' = label_tag :tag_name, 'Name for new tag', class: 'control-label'
.col-sm-10 .col-sm-10
= text_field_tag :tag_name, params[:tag_name], placeholder: 'v3.0.1', required: true, tabindex: 1, class: 'form-control' = text_field_tag :tag_name, params[:tag_name], placeholder: 'v3.0.1', required: true, tabindex: 1, class: 'form-control', dir: :auto
.form-group .form-group
= label_tag :ref, 'Create from', class: 'control-label' = label_tag :ref, 'Create from', class: 'control-label'
.col-sm-10 .col-sm-10
= text_field_tag :ref, params[:ref], placeholder: 'master', required: true, tabindex: 2, class: 'form-control' = text_field_tag :ref, params[:ref], placeholder: 'master', required: true, tabindex: 2, class: 'form-control', dir: :auto
.light Branch name or commit SHA .light Branch name or commit SHA
.form-group .form-group
= label_tag :message, 'Message', class: 'control-label' = label_tag :message, 'Message', class: 'control-label'
.col-sm-10 .col-sm-10
= text_field_tag :message, nil, placeholder: 'Enter message.', required: false, tabindex: 3, class: 'form-control' = text_field_tag :message, nil, placeholder: 'Enter message.', required: false, tabindex: 3, class: 'form-control', dir: :auto
.light (Optional) Entering a message will create an annotated tag. .light (Optional) Entering a message will create an annotated tag.
.form-actions .form-actions
= submit_tag 'Create tag', class: 'btn btn-create', tabindex: 3 = submit_tag 'Create tag', class: 'btn btn-create', tabindex: 3
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
%small.light %small.light
= link_to @commit.short_id, project_commit_path(@project, @commit) = link_to @commit.short_id, project_commit_path(@project, @commit)
&ndash; &ndash;
= truncate(@commit.title, length: 50) %span{ dir: 'auto' }= truncate(@commit.title, length: 50)
= link_to "history", project_commits_path(@project, @id), class: "pull-right" = link_to "history", project_commits_path(@project, @id), class: "pull-right"
- if @path.present? - if @path.present?
......
%span.str-truncated %span.str-truncated
%span.tree_author= commit_author_link(commit, avatar: true, size: 16) %span.tree_author= commit_author_link(commit, avatar: true, size: 16)
= link_to_gfm commit.title, project_commit_path(@project, commit.id), class: "tree-commit-link" = link_to_gfm commit.title, project_commit_path(@project, commit.id), class: "tree-commit-link", dir: "auto"
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
.form-group .form-group
= f.label :content, class: 'control-label' = f.label :content, class: 'control-label'
.col-sm-10 .col-sm-10
= f.text_area :content, class: 'form-control js-gfm-input markdown-area', rows: 18 = f.text_area :content, class: 'form-control js-gfm-input markdown-area', rows: 18, dir: "auto"
.col-sm-12.hint .col-sm-12.hint
.pull-left Wiki content is parsed with #{link_to "GitLab Flavored Markdown", help_page_path("markdown", "markdown"), target: '_blank'} .pull-left Wiki content is parsed with #{link_to "GitLab Flavored Markdown", help_page_path("markdown", "markdown"), target: '_blank'}
.pull-right Attach images (JPG, PNG, GIF) by dragging & dropping or #{link_to "selecting them", '#', class: 'markdown-selector' }. .pull-right Attach images (JPG, PNG, GIF) by dragging & dropping or #{link_to "selecting them", '#', class: 'markdown-selector' }.
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
.error-alert .error-alert
.form-group .form-group
= f.label :commit_message, class: 'control-label' = f.label :commit_message, class: 'control-label'
.col-sm-10= f.text_field :message, class: 'form-control', rows: 18 .col-sm-10= f.text_field :message, class: 'form-control', rows: 18, dir: "auto"
.form-actions .form-actions
- if @page && @page.persisted? - if @page && @page.persisted?
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
.modal-body .modal-body
= label_tag :new_wiki_path do = label_tag :new_wiki_path do
%span Page slug %span Page slug
= text_field_tag :new_wiki_path, nil, placeholder: 'how-to-setup', class: 'form-control', required: true, :'data-wikis-path' => project_wikis_path(@project) = text_field_tag :new_wiki_path, nil, placeholder: 'how-to-setup', class: 'form-control', required: true, :'data-wikis-path' => project_wikis_path(@project), dir: "auto"
%p.hint %p.hint
Please don't use spaces. Please don't use spaces.
.modal-footer .modal-footer
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
.form-group .form-group
= f.label :title, class: 'control-label' = f.label :title, class: 'control-label'
.col-sm-10= f.text_field :title, placeholder: "Example Snippet", class: 'form-control', required: true .col-sm-10= f.text_field :title, placeholder: "Example Snippet", class: 'form-control', required: true, dir: "auto"
- unless @snippet.respond_to?(:project) - unless @snippet.respond_to?(:project)
.form-group .form-group
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
.col-sm-10 .col-sm-10
.file-holder.snippet .file-holder.snippet
.file-title .file-title
= f.text_field :file_name, placeholder: "example.rb", class: 'form-control snippet-file-name', required: true = f.text_field :file_name, placeholder: "example.rb", class: 'form-control snippet-file-name', required: true, dir: "auto"
.file-content.code .file-content.code
%pre#editor= @snippet.content %pre#editor= @snippet.content
= f.hidden_field :content, class: 'snippet-file-content' = f.hidden_field :content, class: 'snippet-file-content'
......
%li %li
%h4.snippet-title %h4.snippet-title
= link_to reliable_snippet_path(snippet) do = link_to reliable_snippet_path(snippet) do
= truncate(snippet.title, length: 60) %span{ dir: "auto" }= truncate(snippet.title, length: 60)
- if snippet.private? - if snippet.private?
%span.label.label-gray %span.label.label-gray
%i.icon-lock %i.icon-lock
private private
%span.cgray.monospace.tiny.pull-right %span.cgray.monospace.tiny.pull-right{ dir: "auto" }
= snippet.file_name = snippet.file_name
%small.pull-right.cgray %small.pull-right.cgray
- if snippet.project_id? - if snippet.project_id?
= link_to snippet.project.name_with_namespace, project_path(snippet.project) = link_to snippet.project.name_with_namespace, project_path(snippet.project), dir: "auto"
.snippet-info .snippet-info
= "##{snippet.id}" = "##{snippet.id}"
...@@ -19,5 +19,5 @@ ...@@ -19,5 +19,5 @@
by by
= link_to user_snippets_path(snippet.author) do = link_to user_snippets_path(snippet.author) do
= image_tag avatar_icon(snippet.author_email), class: "avatar avatar-inline s16", alt: '' = image_tag avatar_icon(snippet.author_email), class: "avatar avatar-inline s16", alt: ''
= snippet.author_name %span{ dir: "auto" }= snippet.author_name
%span.light #{time_ago_with_tooltip(snippet.created_at)} %span.light #{time_ago_with_tooltip(snippet.created_at)}
...@@ -8,20 +8,20 @@ ...@@ -8,20 +8,20 @@
- unless user.skype.blank? - unless user.skype.blank?
%li %li
%span.light Skype: %span.light Skype:
%strong= link_to user.skype, "skype:#{user.skype}" %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:
%strong= user.linkedin %strong{ dir: 'auto' }= user.linkedin
- 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}" %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 %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:
%span= user.bio %span{ dir: 'auto' }= user.bio
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
.col-md-8 .col-md-8
%h3.page-title %h3.page-title
= image_tag avatar_icon(@user.email, 90), class: "avatar s90", alt: '' = image_tag avatar_icon(@user.email, 90), class: "avatar s90", alt: ''
= @user.name %div{ dir: 'auto' }= @user.name
- if @user == current_user - if @user == current_user
.pull-right .pull-right
= link_to profile_path, class: 'btn' do = link_to profile_path, class: 'btn' do
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
%li{class: "#{dom_class(member)} js-toggle-container", id: dom_id(member)} %li{class: "#{dom_class(member)} js-toggle-container", id: dom_id(member)}
%span{class: ("list-item-name" if show_controls)} %span{class: ("list-item-name" if show_controls)}
= image_tag avatar_icon(user.email, 16), class: "avatar s16" = image_tag avatar_icon(user.email, 16), class: "avatar s16"
%strong= user.name %strong{ dir: 'auto' }= user.name
%span.cgray= user.username %span.cgray= user.username
- if user == current_user - if user == current_user
%span.label.label-success It's you %span.label.label-success It's you
......
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