forked from codeforjapan/decidim-cfj
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from takahashim/fix-028-b
merge main
- Loading branch information
Showing
5 changed files
with
69 additions
and
2 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,4 +1,4 @@ | ||
FROM node:18.17.1-bullseye-slim as node | ||
FROM node:18.17.1-bullseye-slim AS node | ||
|
||
FROM ruby:3.1.1-slim-bullseye | ||
|
||
|
30 changes: 30 additions & 0 deletions
30
app/views/decidim/accountability/results/_timeline.html.erb
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<div class="small-12 columns"> | ||
<div class="section"> | ||
<h4 class="section-heading"><%= t(".title") %></h4> | ||
<ol class="timeline"> | ||
<% result.timeline_entries.each_with_index do |timeline_entry, i| %> | ||
<li class="timeline__item "> | ||
<div class="timeline__phase"> | ||
<span class="timeline__phase__number"><%= i + 1 %></span> | ||
</div> | ||
<div class="timeline__info"> | ||
<div class="timeline__description"> | ||
<span class="timeline__date text-small"> | ||
<%= l timeline_entry.entry_date, format: :decidim_short %> | ||
</span> | ||
<h4 class="timeline__title"> | ||
<%= translated_attribute timeline_entry.title %> | ||
</h4> | ||
|
||
<% if translated_attribute(timeline_entry.description).present? %> | ||
<div class="timeline__description__description"> | ||
<%= decidim_sanitize_admin translated_attribute(timeline_entry.description) %> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
</li> | ||
<% end %> | ||
</ol> | ||
</div> | ||
</div> |
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 |
---|---|---|
|
@@ -106,3 +106,19 @@ http://localhost:3000 にアクセス | |
* サービス画面 (http://localhost:3000/users/sign_in?locale=ja) | ||
* [email protected] (組織管理者) | ||
* [email protected] (通常ユーザ) | ||
|
||
## 5. キャッシュとRedisについて | ||
|
||
Railsのキャッシュはproduction環境ではRedis Cache Store(`ActiveSupport::Cache::RedisCacheStore`)を使うようになっています。 | ||
|
||
Redisの設定は環境変数 `REDIS_CACHE_URL` を使用しています。 | ||
|
||
development環境でのRailsの標準機能として、キャッシュのオン・オフをトグルで制御できます。オン・オフを切り替えたい場合、以下のコマンドを実行してください。 | ||
|
||
```console | ||
# dockerを使っている場合 | ||
docker compose run app rails dev:cache | ||
|
||
# localで動かしている場合 | ||
bin/rails dev:cache | ||
``` |