insert css to ruby app - namely, rtl support to gitlab -


couldn't find on subject, more general "ruby" , "css" terms (as opposed "gitlab" , "rtl"). apologize if missed existing answer.

my problem complete lack of knowledge in ruby, , of time learn it. not new programming though, , know thing or 2 web programming (played django little).

we interested in deploying gitlab on server in workplace, need display hebrew text properly. don't need gitlab translated! our comments , issues created in hebrew. believe can achieved applying following css code pages (all of them, why not):

div.event-note   {             direction:   rtl;             text-align:   left; }  div.issue-actions   {             left:   30px; }  div.issue-title   {             direction:   rtl;             padding-bottom:   5px;             text-align:   right; }  div.note-text   p   {             direction:   rtl;             text-align:   right; }  div.state-label.state-label-green   {             float:   left; }  div.state-label.state-label-red   {             float:   left; }  div.wiki   {             direction:   rtl; }  div.wiki   ol,   div.wiki   ul   {             padding-right:   40px; }  div.wiki   pre   {             direction:   ltr; }  h4.box-title   {             direction:   rtl; }  input.input-xxlarge.js-gfm-input   {             direction:   rtl; }  textarea.input-xxlarge.js-gfm-input   {             direction:   rtl; }  textarea.note_text.js-note-text.js-gfm-input.turn-on   {             direction:   rtl; } 

(thanks to: http://stylebot.me/styles/5581)

but, attempts add code failed (that is, hebrew text shown bad on site).

i using bitnami appliance of gitlab on ubuntu 14.04 (download here) i've tried following:

  1. added code /opt/bitnami/gitlab/htdocs/public/static.css
  2. converted scss using css2compass, saved in .scss file , added import /opt/bitnami/gitlab/htdocs/app/assets/stylesheets/application.scss

am doing right thing? missing compilation process? appreciated, helping me understand beneficial need maintain app on time. in advance.

edit: here's scss code got above css -

div {     &.event-note {         direction: rtl;         text-align: left;     }     &.issue-actions {         left: 30px;     }     &.issue-title {         direction: rtl;         padding-bottom: 5px;         text-align: right;     }     &.state-label {         &.state-label-green {             float: left;         }         &.state-label-red {             float: left;         }     }     &.wiki {         direction: rtl;         ol {             padding-right: 40px;         }         ul {             padding-right: 40px;         }     }     &.note-text p {         direction: rtl;         text-align: right;     } } 

if can confirm it's ruby/gitlab nice...

eventually found answer here: https://community.bitnami.com/t/how-to-recompile-assets-for-gitlab/24644

quote:

hi,

you can compile application assets following command. note have start "use_gitlab" script before running these command if using native installer.

sudo su git cd /opt/bitnami/apps/gitlab/htdocs bin/rake assets:precompile rails_env=production 

i did , rebooted machine , rtl displayed in acceptable manner. assuming there way re-deploy app without rebooting server, , after not finding although trying, mark accepted answer add part solution.

thanks.


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -