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

RTL support added

parent f092e53e
......@@ -39,3 +39,4 @@ public/assets/
.envrc
dump.rdb
tags
.AppleDouble
......@@ -177,6 +177,9 @@ $ ->
$(@).closest(".diff-file").find(".notes_holder").toggle()
e.preventDefault()
# RTL Support in wiki pages
$('.wiki').find('*').not('li').attr('dir', 'auto');
(($) ->
# Disable an element and add the 'disabled' Bootstrap class
$.fn.extend disable: ->
......
......@@ -62,7 +62,7 @@ module CommitsHelper
# Returns the sorted alphabetically links to branches, separated by a comma
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
def link_to_browse_code(project, commit)
......@@ -96,7 +96,7 @@ module CommitsHelper
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: "")
%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
person_name
end
......
......@@ -3,7 +3,7 @@ module EventsHelper
author = event.author
if author
link_to author.name, user_path(author.username)
link_to author.name, user_path(author.username), dir: 'auto'
else
event.author_name
end
......
......@@ -7,7 +7,7 @@ module LabelsHelper
label_color = label.color || Label::DEFAULT_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
end
end
......
......@@ -8,7 +8,7 @@ module ProjectsHelper
title = content_tag(:span, project.name, class: 'project-name')
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
end
......@@ -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]
# 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
......
......@@ -2,7 +2,7 @@
Broadcast Messages
%p.light
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
%span Your message here
......@@ -14,7 +14,7 @@
.form-group
= f.label :message, class: 'control-label'
.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
= link_to '#', class: 'js-toggle-colors-link' do
Customize colors
......@@ -55,7 +55,7 @@
= link_to [:admin, broadcast_message], method: :delete, remote: true, class: 'remove-row btn btn-tiny' do
%i.icon-remove.cred
.message= broadcast_message.message
.message{ dir: 'auto' }= broadcast_message.message
= paginate @broadcast_messages
......@@ -36,7 +36,7 @@
%hr
- @projects.each do |project|
%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
#{time_ago_with_tooltip(project.created_at)}
......@@ -45,7 +45,7 @@
%hr
- @users.each do |user|
%p
= link_to [:admin, user], class: 'str-truncated' do
= link_to [:admin, user], class: 'str-truncated', dir: 'auto' do
= user.name
%span.light.pull-right
#{time_ago_with_tooltip(user.created_at)}
......@@ -55,7 +55,7 @@
%hr
- @groups.each do |group|
%p
= link_to [:admin, group], class: 'str-truncated' do
= link_to [:admin, group], class: 'str-truncated', dir: 'auto' do
= group.name
%span.light.pull-right
#{time_ago_with_tooltip(group.created_at)}
......
......@@ -6,12 +6,12 @@
= f.label :name, class: 'control-label' do
Group name
.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
= f.label :description, "Details", class: 'control-label'
.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
= f.label :avatar, "Group avatar", class: 'control-label'
......@@ -44,7 +44,7 @@
= f.label :path, class: 'control-label' do
%span Group path
.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
%ul
%li Changing group path can have unintended side effects.
......
......@@ -9,7 +9,7 @@
%hr
= form_tag admin_groups_path, method: :get, class: 'form-inline' do
.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"
%hr
......@@ -24,14 +24,14 @@
%h4
= link_to [:admin, group] do
%i.icon-folder-close
%i.icon-folder-close{ dir: 'auto' }
= group.name
&rarr;
%span.monospace
%strong #{group.path}/
%strong{ dir: 'auto' } #{group.path}/
.clearfix
%p
%p{ dir: 'auto' }
= truncate group.description, length: 150
.clearfix
%p.light
......
......@@ -15,20 +15,20 @@
= image_tag group_icon(@group.path), class: "avatar s60"
%li
%span.light Name:
%strong= @group.name
%strong{ dir: 'auto' }= @group.name
%li
%span.light Path:
%strong
%strong{ dir: 'auto' }
= @group.path
%li
%span.light Description:
%strong
= @group.description
%span{ dir: 'auto' }= @group.description
%li
%span.light Created on:
%strong
%strong{ dir: 'auto' }
= @group.created_at.stamp("March 1, 1999")
.panel.panel-default
......@@ -40,11 +40,11 @@
%ul.well-list
- @projects.each do |project|
%li
%strong
%strong{ dir: 'auto' }
= link_to project.name_with_namespace, [:admin, project]
%span.label.label-gray
= repository_size(project)
%span.pull-right.light
%span.pull-right.light{ dir: 'auto' }
%span.monospace= project.path_with_namespace + ".git"
.panel-footer
= paginate @projects, param_name: 'projects_page', theme: 'gitlab'
......@@ -76,7 +76,7 @@
- user = member.user
%li{class: dom_class(user)}
.list-item-name
%strong
%strong{ dir: 'auto' }
= link_to user.name, admin_user_path(user)
%span.pull-right.light
= member.human_access
......
......@@ -4,7 +4,7 @@
= form_tag admin_projects_path, method: :get, class: '' do
.form-group
= 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
= label_tag :namespace_id, "Namespace"
......@@ -72,7 +72,7 @@
.list-item-name
%span{ class: visibility_level_color(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
%span.label.label-gray
= repository_size(project)
......
......@@ -12,18 +12,18 @@
%ul.well-list
%li
%span.light Name:
%strong
%strong{ dir: 'auto' }
= link_to @project.name, project_path(@project)
%li
%span.light Namespace:
%strong
%strong{ dir: 'auto' }
- if @project.namespace
= link_to @project.namespace.human_name, [:admin, @project.group || @project.owner]
- else
Global
%li
%span.light Owned by:
%strong
%strong{ dir: 'auto' }
- if @project.owner
= link_to @project.owner_name, [:admin, @project.owner]
- else
......@@ -31,7 +31,7 @@
%li
%span.light Created by:
%strong
%strong{ dir: 'auto' }
= @project.creator.try(:name) || '(deleted)'
%li
......@@ -94,7 +94,7 @@
- if @group
.panel.panel-default
.panel-heading
%strong #{@group.name}
%strong{ dir: 'auto' } #{@group.name}
group members (#{@group.users_groups.count})
.pull-right
= link_to admin_group_path(@group), class: 'btn btn-small' do
......@@ -120,7 +120,7 @@
%li.users_project
.list-item-name
%strong
= link_to user.name, admin_user_path(user)
= link_to user.name, admin_user_path(user), dir: 'auto'
.pull-right
- if users_project.owner?
%span.light Owner
......
......@@ -11,17 +11,17 @@
.form-group
= f.label :name, class: 'control-label'
.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
.form-group
= f.label :username, class: 'control-label'
.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
.form-group
= f.label :email, class: 'control-label'
.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
- if @user.new_record?
......@@ -70,16 +70,16 @@
.form-group
= 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
= 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
= 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
= 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
- if @user.new_record?
......
%h3.page-title
%h3.page-title{ dir: 'auto' }
Edit user: #{@user.name}
.back-link
= link_to admin_user_path(@user) do
......
......@@ -21,7 +21,7 @@
%hr
= form_tag admin_users_path, method: :get, class: 'form-inline' do
.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
%i.icon-search
%hr
......@@ -41,7 +41,7 @@
%i.icon-lock.cred
- else
%i.icon-user.cgreen
= link_to user.name, [:admin, user]
= link_to user.name, [:admin, user], dir: 'auto'
- if user.admin?
%strong.cred (Admin)
- if user == current_user
......
%h3.page-title
%h3.page-title{ dir: 'auto' }
New user
%hr
= render 'form'
%h3.page-title
User:
= @user.name
%span{ dir: 'auto' }= @user.name
- if @user.blocked?
%span.cred (Blocked)
- if @user.admin
......@@ -31,19 +31,19 @@
%ul.well-list
%li
%span.light Name:
%strong= @user.name
%strong{ dir: 'auto' }= @user.name
%li
%span.light Username:
%strong
%strong{ dir: 'auto' }
= @user.username
%li
%span.light Email:
%strong
%strong{ dir: 'auto' }
= mail_to @user.email
- @user.emails.each do |email|
%li
%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
%i.icon-remove
......@@ -95,7 +95,7 @@
- if @user.created_by
%li
%span.light Created by:
%strong
%strong{ dir: 'auto' }
= link_to @user.created_by.name, [:admin, @user.created_by]
.col-md-6
......@@ -167,7 +167,7 @@
- group = user_group.group
%li.users_group
%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
%span.light= user_group.human_access
- unless user_group.owner?
......
.panel.panel-default
.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?
= link_to new_group_path, class: "btn btn-new pull-right" do
%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
= visibility_level_icon(project.visibility_level)
%span.str-truncated
......
.panel.panel-default
.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?
= link_to new_project_path, class: "btn btn-new pull-right" do
%i.icon-plus
......
......@@ -59,7 +59,7 @@
%i.icon-tag
= tag.name
- if project.description.present?
%p= truncate project.description, length: 100
%p{ dir: 'auto' }= truncate project.description, length: 100
.last-activity
%span.light Last activity:
%span.date= project_last_activity(project)
......
......@@ -7,7 +7,7 @@
<%= f.email_field :email %></div>
<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 />
<%= f.password_field :password %></div>
......
......@@ -6,9 +6,9 @@
.devise-errors
= devise_error_messages!
%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
= 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
= f.email_field :email, class: "form-control middle", placeholder: "Email", required: true
%div
......
= 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"
- if devise_mapping.rememberable?
.clearfix.append-bottom-10
......
......@@ -2,4 +2,4 @@
.commit-row-title
= link_to commit[:id][0..8], project_commit_path(project, commit[:id]), class: "commit_short_id", alt: ''
&nbsp;
= gfm event_commit_title(commit[:message]), project
%span{ dir: 'auto' }= gfm event_commit_title(commit[:message]), project
......@@ -3,7 +3,7 @@
.event-last-push-text
%span You pushed to
= link_to project_commits_path(event.project, event.ref_name) do
%strong= event.ref_name
%strong{ dir: 'auto' }= event.ref_name
at
%strong= link_to_project event.project
#{time_ago_with_tooltip(event.created_at)}
......
......@@ -12,5 +12,5 @@
= event.project_name
- if event.target.respond_to?(:title)
.event-body
.event-note
.event-note{ dir: 'auto' }
= event.target.title
......@@ -7,7 +7,7 @@
= event.project_name
.event-body
.event-note
.event-note{ dir: 'auto' }
.md
%i.icon-comment-alt.event-note-icon
= event_note(event.target.note)
......
......@@ -2,10 +2,10 @@
%span.author_name= link_to_author event
%span.event_label.pushed #{event.push_action_name} #{event.ref_type}
- if event.rm_ref?
%strong= event.ref_name
%strong{ dir: 'auto' }= event.ref_name
- else
= link_to project_commits_path(event.project, event.ref_name) do
%strong= event.ref_name
%strong{ dir: 'auto' }= event.ref_name
at
= link_to_project event.project
......
......@@ -15,12 +15,12 @@
= f.label :name, class: 'control-label' do
Group name
.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
= f.label :description, "Details", class: 'control-label'
.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
.col-sm-2
......
......@@ -30,7 +30,7 @@
- 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"
%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
= link_to group_milestone_path(@group, milestone.safe_title, title: milestone.title) do
......
......@@ -3,15 +3,15 @@
.alert.alert-danger
%span= @group.errors.full_messages.first
.form-group
= f.label :name, class: 'control-label' do
= f.label :name, class: 'control-label', dir: :auto do
Group name
.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
= f.label :description, "Details", class: 'control-label'
.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
= f.label :avatar, "Group avatar", class: 'control-label'
......
......@@ -23,7 +23,7 @@
%h3.page-title
= @group.name
- if @group.description.present?
%p
%p{ dir: :auto }
= auto_link @group.description, link: :urls
= render "projects", projects: @projects
- if current_user
......
- if broadcast_message.present?
.broadcast-message{ style: broadcast_styling(broadcast_message) }
.broadcast-message{ style: broadcast_styling(broadcast_message), dir: 'auto' }
%i.icon-bullhorn
= broadcast_message.message
......@@ -6,7 +6,7 @@
= link_to root_path, class: "home has_bottom_tooltip", title: "Dashboard" do
%h1 GITLAB
%span.separator
%h1.title= title
%h1.title{ dir: 'auto' }= title
%button.navbar-toggle{"data-target" => ".navbar-collapse", "data-toggle" => "collapse", type: "button"}
%span.sr-only Toggle navigation
......
.search
= 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)
- if @project && @project.persisted?
= hidden_field_tag :project_id, @project.id
......
......@@ -8,7 +8,7 @@
.form-group
= 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
= f.label :key, class: 'control-label'
.col-sm-10
......
%li
= link_to profile_key_path(key) do
%strong= key.title
%strong{ dir: :auto }= key.title
%span
(#{key.fingerprint})
%span.cgray
......
......@@ -6,7 +6,7 @@
%ul.well-list
%li
%span.light Title:
%strong= @key.title
%strong{ dir: :auto }= @key.title
%li
%span.light Created on:
%strong= @key.created_at.stamp("Aug 21, 2011")
......
......@@ -19,21 +19,21 @@
.form-group
= f.label :name, class: "control-label"
.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.
.form-group
= f.label :email, class: "control-label"
.col-sm-10
- 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
Email is read-only for LDAP user
- else
- 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
= 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?
%span.help-block
Please click the link in the confirmation email before continuing, it was send to
......@@ -43,20 +43,20 @@
%span.help-block We also use email for avatar detection if no avatar is uploaded.
.form-group
= 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
= 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
= 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
= 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
= f.label :bio, class: "control-label"
.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.
.col-md-5
......
......@@ -3,7 +3,7 @@
.project-home-row
.project-home-desc
- 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)
&ndash;
= link_to 'Edit', edit_project_path
......
......@@ -3,7 +3,7 @@
%strong= 'Title *'
.col-sm-10
= 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
= f.label :description, 'Description', class: 'control-label'
.col-sm-10
......
......@@ -2,6 +2,6 @@
%input#zen-toggle-comment{ tabindex: '-1', type: 'checkbox' }
.zen-backdrop
- 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: 'collapse' }
......@@ -2,7 +2,7 @@
%li(class="js-branch-#{branch.name}")
%h4
= 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
%span.label.label-info default
- if @project.protected_branch? branch.name
......
......@@ -9,11 +9,11 @@
.form-group
= label_tag :branch_name, 'Name for new branch', class: 'control-label'
.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
= label_tag :ref, 'Create from', class: 'control-label'
.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
= submit_tag 'Create branch', class: 'btn btn-create', tabindex: 3
= link_to 'Cancel', project_branches_path(@project), class: 'btn btn-cancel'
......
......@@ -43,7 +43,7 @@
Exists in
%span
- 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?
and in
= link_to("#{pluralize(@branches.count, "other branch")}", "#", class: "js-details-expand")
......@@ -51,8 +51,8 @@
= commit_branches_links(@project, @branches)
.commit-box
%h3.commit-title
%h3.commit-title{ dir: "auto" }
= gfm escape_once(@commit.title)
- if @commit.description.present?
%pre.commit-description
%pre.commit-description{ dir: "auto" }
= preserve(gfm(escape_once(@commit.description)))
......@@ -3,7 +3,7 @@
= link_to commit.short_id(8), project_commit_path(project, commit), class: "commit_short_id"
&nbsp;
%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?
%a.text-expander.js-toggle-button ...
......
......@@ -3,6 +3,6 @@
= link_to commit.short_id(8), project_commit_path(project, commit), class: "commit_short_id"
&nbsp;
%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
#{time_ago_with_tooltip(commit.committed_date)}
......@@ -5,12 +5,12 @@
.form-group
.input-group.inline-input-group
%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
.input-group.inline-input-group
%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;
= submit_tag "Compare", class: "btn btn-create commits-compare-btn"
- if compare_to_mr_button?
......
......@@ -13,7 +13,7 @@
= f.label :name, class: 'control-label' do
Project name
.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
......@@ -21,7 +21,7 @@
Project description
%span.light (optional)
.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?
.form-group
......@@ -37,7 +37,7 @@
.form-group
= f.label :tag_list, "Tags", class: 'control-label'
.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.
%fieldset.features
......
......@@ -27,7 +27,7 @@
Commit message
.col-sm-10
= 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
= hidden_field_tag 'last_commit', @last_commit
= hidden_field_tag 'content', '', id: "file-content"
......
......@@ -24,7 +24,7 @@
%i.icon.icon-list
= 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
= 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 :scope, params['scope']
= hidden_field_tag :assignee_id, params['assignee_id']
......
......@@ -6,7 +6,7 @@
.issue-title
%span.light= "##{issue.iid}"
%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?
%small.pull-right
CLOSED
......@@ -25,7 +25,7 @@
- if issue.milestone
%span
%i.icon-time
= issue.milestone.title
%span{ dir: 'auto' }= issue.milestone.title
.pull-right
%small updated #{time_ago_with_tooltip(issue.updated_at, 'bottom', 'issue_update_ago')}
......
......@@ -27,7 +27,7 @@
- if @issue.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-box{ class: issue_box_class(@issue) }
......@@ -41,7 +41,7 @@
.creator
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)
- if @issue.description.present?
......
......@@ -10,7 +10,7 @@
.form-group
= f.label :title, class: 'control-label'
.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
= f.label :color, "Background Color", class: 'control-label'
.col-sm-10
......
%h3
Edit label
%span.light #{@label.name}
%span.light{ dir: :auto } #{@label.name}
.back-link
= link_to project_labels_path(@project) do
&larr; To labels list
......
%li{ class: mr_css_classes(merge_request) }
.merge-request-title
%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?
%small.pull-right
%i.icon-ok
......
......@@ -17,7 +17,7 @@
.light
= f.label :title do
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
.light
= f.label :description, "Description"
......
......@@ -11,14 +11,14 @@
.creator
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)
- if @merge_request.description.present?
.description
.wiki
= preserve do
= markdown @merge_request.description
%span{ dir: 'auto' }= markdown @merge_request.description
.context
%cite.cgray
......
......@@ -16,12 +16,12 @@
.form-group
= f.label :title, "Title", class: "control-label"
.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
.form-group
= f.label :description, "Description", class: "control-label"
.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
.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' }.
......
......@@ -6,7 +6,7 @@
Edit
= link_to 'Close Milestone', project_milestone_path(@project, milestone, milestone: {state_event: :close }), method: :put, remote: true, class: "btn btn-small btn-close"
%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?
%span.cred (Expired)
%small
......
......@@ -32,7 +32,7 @@
.creator
= @milestone.expires_at
%h4.title
%h4.title{ dir: :auto }
= gfm escape_once(@milestone.title)
- if @milestone.description.present?
......
......@@ -2,7 +2,7 @@
.project-network
.controls
= 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
%i.icon-search
.inline.prepend-left-20
......
......@@ -8,7 +8,7 @@
= f.label :name, class: 'control-label' do
%strong Project name
.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?
.form-group
......@@ -31,7 +31,7 @@
%span Repository name
.col-sm-10
.input-group
= f.text_field :path, class: 'form-control'
= f.text_field :path, class: 'form-control', dir: 'auto'
%span.input-group-addon .git
.js-toggle-container
......@@ -58,7 +58,7 @@
Description
%span.light (optional)
.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
.form-actions
......
......@@ -9,10 +9,10 @@
.input-group
%span.input-group-addon
= @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
on
%span= @ref
%span{ dir: "auto" }= @ref
.form-group.commit_message-group
= label_tag :encoding, class: "control-label" do
......@@ -25,7 +25,7 @@
Commit message
.col-sm-10
= 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-title
......
......@@ -15,7 +15,7 @@
%div
.note-write-holder
= render 'projects/zen', f: f, attr: :note,
classes: 'note_text js-note-text'
classes: 'note_text js-note-text', dir: :auto
.light.clearfix
.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 }.
......
......@@ -32,13 +32,13 @@
.note-body
.note-text
.note-text{ dir: 'auto' }
= preserve do
= markdown(note.note, {no_header_anchors: true})
.note-edit-form
= 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
= f.submit 'Save changes', class: "btn btn-primary btn-save js-comment-button"
......
......@@ -56,9 +56,9 @@
%p
%span.light Owned by
- if @project.group
#{link_to @project.group.name, @project.group} group
#{link_to @project.group.name, @project.group, dir: "auto"} group
- else
#{link_to @project.owner_name, @project.owner}
#{link_to @project.owner_name, @project.owner, dir: "auto"}
- if @project.gitlab_ci?
......
%li
%h4.snippet-title
= link_to reliable_snippet_path(snippet) do
= truncate(snippet.title, length: 60)
%span.cgray.monospace.tiny.pull-right
%span{ dir: "auto" }= truncate(snippet.title, length: 60)
%span.cgray.monospace.tiny.pull-right{ dir: "auto" }
= snippet.file_name
.snippet-info
......@@ -10,6 +10,6 @@
%span
by
= image_tag avatar_icon(snippet.author_email), class: "avatar avatar-inline s16"
= snippet.author_name
%span{ dir: "auto" }= snippet.author_name
%span.light
#{time_ago_with_tooltip(snippet.created_at)}
......@@ -14,7 +14,7 @@
by
= link_to user_path(@snippet.author) do
= image_tag avatar_icon(@snippet.author_email), class: "avatar avatar-inline s16"
= @snippet.author_name
%span{ dir: "auto" }= @snippet.author_name
.back-link
= link_to project_snippets_path(@project) do
......
......@@ -9,16 +9,16 @@
.form-group
= label_tag :tag_name, 'Name for new tag', class: 'control-label'
.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
= label_tag :ref, 'Create from', class: 'control-label'
.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
.form-group
= label_tag :message, 'Message', class: 'control-label'
.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.
.form-actions
= submit_tag 'Create tag', class: 'btn btn-create', tabindex: 3
......
......@@ -29,7 +29,7 @@
%small.light
= link_to @commit.short_id, project_commit_path(@project, @commit)
&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"
- if @path.present?
......
%span.str-truncated
%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 @@
.form-group
= f.label :content, class: 'control-label'
.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
.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' }.
......@@ -30,7 +30,7 @@
.error-alert
.form-group
= 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
- if @page && @page.persisted?
......
......@@ -7,7 +7,7 @@
.modal-body
= label_tag :new_wiki_path do
%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
Please don't use spaces.
.modal-footer
......
......@@ -8,7 +8,7 @@
.form-group
= 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)
.form-group
......@@ -32,7 +32,7 @@
.col-sm-10
.file-holder.snippet
.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
%pre#editor= @snippet.content
= f.hidden_field :content, class: 'snippet-file-content'
......
%li
%h4.snippet-title
= link_to reliable_snippet_path(snippet) do
= truncate(snippet.title, length: 60)
%span{ dir: "auto" }= truncate(snippet.title, length: 60)
- if snippet.private?
%span.label.label-gray
%i.icon-lock
private
%span.cgray.monospace.tiny.pull-right
%span.cgray.monospace.tiny.pull-right{ dir: "auto" }
= snippet.file_name
%small.pull-right.cgray
- 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.id}"
......@@ -19,5 +19,5 @@
by
= link_to user_snippets_path(snippet.author) do
= 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)}
......@@ -8,20 +8,20 @@
- unless user.skype.blank?
%li
%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?
%li
%span.light LinkedIn:
%strong= user.linkedin
%strong{ dir: 'auto' }= user.linkedin
- unless user.twitter.blank?
%li
%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?
%li
%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?
%li
%span.light Bio:
%span= user.bio
%span{ dir: 'auto' }= user.bio
......@@ -2,7 +2,7 @@
.col-md-8
%h3.page-title
= image_tag avatar_icon(@user.email, 90), class: "avatar s90", alt: ''
= @user.name
%div{ dir: 'auto' }= @user.name
- if @user == current_user
.pull-right
= link_to profile_path, class: 'btn' do
......
......@@ -4,7 +4,7 @@
%li{class: "#{dom_class(member)} js-toggle-container", id: dom_id(member)}
%span{class: ("list-item-name" if show_controls)}
= image_tag avatar_icon(user.email, 16), class: "avatar s16"
%strong= user.name
%strong{ dir: 'auto' }= user.name
%span.cgray= user.username
- if user == current_user
%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