-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
124 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
FROM opensuse/leap:15.4 | ||
|
||
# This includes several packages (like WebKit, xvfb or liberation-fonts) | ||
# This includes several packages (like Chromium, xvfb or liberation-fonts) | ||
# That are only needed to run the automated tests and wouldn't be relevant | ||
# in a production environment. | ||
RUN zypper ar https://download.opensuse.org/repositories/devel:/languages:/ruby/15.4/ ruby && \ | ||
zypper --gpg-auto-import-keys --non-interactive in --no-recommends \ | ||
ruby2.7 ruby2.7-devel libxml2-devel libxslt-devel \ | ||
postgresql-devel sqlite3-devel libmariadb-devel \ | ||
libQt5WebKit5 libQt5WebKit5-devel libQt5WebKitWidgets5 libQt5WebKitWidgets-devel \ | ||
xvfb-run which liberation-fonts gcc gcc-c++ make tar gzip patch timezone && \ | ||
zypper clean -a && \ | ||
gem.ruby2.7 install bundler -v 1.17.3 | ||
zypper --gpg-auto-import-keys --non-interactive in --no-recommends \ | ||
ruby2.7 ruby2.7-devel libxml2-devel libxslt-devel chromium \ | ||
postgresql-devel sqlite3-devel libmariadb-devel unzip wget \ | ||
which liberation-fonts gcc gcc-c++ make tar gzip patch timezone && \ | ||
zypper clean -a && \ | ||
gem.ruby2.7 install bundler -v 1.17.3 | ||
|
||
RUN wget https://chromedriver.storage.googleapis.com/107.0.5304.62/chromedriver_linux64.zip && \ | ||
unzip chromedriver_linux64.zip && \ | ||
mv chromedriver /usr/bin/chromedriver && \ | ||
chmod +x /usr/bin/chromedriver | ||
|
||
RUN mkdir /app | ||
WORKDIR /app | ||
COPY . /app | ||
ENV QMAKE=/usr/bin/qmake-qt5 | ||
RUN bundler.ruby2.7 _1.17.3_ install | ||
|
||
CMD ["rails", "server", "-b", "0.0.0.0"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
.col-md-10.event_email_index | ||
%h3.pull-left Emails for #{@event.name} | ||
= link_to 'Compose', new_event_event_email_path, class: 'btn btn-primary pull-right' | ||
.col-md-11 | ||
%table.table.table-striped | ||
%table.table.table-striped | ||
%tr | ||
%th # | ||
%th Subject | ||
%th Body | ||
%th Sent By | ||
%th Created At | ||
- @event.event_emails.reverse.each_with_index do |e,i| | ||
%tr | ||
%th # | ||
%th Subject | ||
%th Body | ||
%th Sent By | ||
%th Created At | ||
- @event.event_emails.reverse.each_with_index do |e,i| | ||
%tr | ||
%td #{i+1} | ||
%td | ||
= link_to truncate(e.subject, length: 50), event_event_email_path(@event,e) | ||
%td | ||
= markdown(truncate(e.body, length: 50)) | ||
%td | ||
= e.user.email | ||
%td #{time_tag(e.created_at)} | ||
%td #{i+1} | ||
%td | ||
= link_to truncate(e.subject, length: 50), event_event_email_path(@event,e) | ||
%td | ||
= markdown(truncate(e.body, length: 50)) | ||
%td | ||
= e.user.email | ||
%td #{time_tag(e.created_at)} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.