...
 
Commits (2)
......@@ -41,14 +41,17 @@ Technical info:
```
* Configuration:
```bash
# If upgrading the application, make sure to diff the example files against
# the working files to make sure there are no changes to move over
mv config/secrets.yml.example config/secrets.yml
# Edit config/secrets.yml and insert the relevant API keys
mv config/config.yml.example config/config.yml
# Edit config/config.yml and change whatever settings you want
mv config/locales/domains.en.yml.example config/locales/domains.en.yml
# Edit config/locales/domains.en.yml and setup your domain configurations
# If upgrading the application, make sure to git diff the example files
# to make sure there are no changes to move over with the command:
# git diff <old-tag-or-commit> <new-tag-or-commit> -- <file>
# e.g.:
# git diff 0.9.0 0.9.1 -- config/config.yml.example
mv config/secrets.yml.example config/secrets.yml
# Edit config/secrets.yml and insert the relevant API keys
mv config/config.yml.example config/config.yml
# Edit config/config.yml and change whatever settings you want
mv config/locales/domains.en.yml.example config/locales/domains.en.yml
# Edit config/locales/domains.en.yml and setup your domain configurations
```
* Database setup:
For the IRC logs database, the logger I linked above can setup the tables for you. For your development environment, however:
......
......@@ -38,9 +38,9 @@
<% end -%>
</li>
<li><b>Bans Received:</b> <%= @user.bans_received %></li>
<li><b>Most Recent Login:</b> <%= ApplicationHelper.datetime_to_str(@user.current_sign_in_at, show_offset: true) %> (from <code><%= @user.current_sign_in_ip %></code>)</li>
<li><b>Previous Login:</b> <%= ApplicationHelper.datetime_to_str(@user.last_sign_in_at, show_offset: true) %> (from <code><%= @user.last_sign_in_ip %></code>)</li>
<li><b>EULA Accepted On:</b> <%= ApplicationHelper.datetime_to_str(@user.eula_accepted_at, show_offset: true) || "Not accepted" %></li>
<li><b>Most Recent Login:</b> <%= "#{ApplicationHelper.datetime_to_str(@user.current_sign_in_at, show_offset: true)} (from <code>#{@user.current_sign_in_ip}</code>)" if @user.current_sign_in_at %></li>
<li><b>Previous Login:</b> <%= "#{ApplicationHelper.datetime_to_str(@user.last_sign_in_at, show_offset: true)} (from <code>#{@user.last_sign_in_ip}</code>)" if @user.last_sign_in_at %></li>
<li><b>EULA Accepted On:</b> <%= if @user.eula_accepted_at then ApplicationHelper.datetime_to_str(@user.eula_accepted_at, show_offset: true) else "Not accepted" end %></li>
<li><b>Joined On:</b> <%= ApplicationHelper.datetime_to_str(@user.created_at, show_offset: true) %></li>
</ul>
</div>
......