Skip to content

Commit

Permalink
Display last updated at in sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
davidalejandroaguilar committed Nov 26, 2024
1 parent 91b054e commit 852f4f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
GIT
remote: https://github.com/PhlexyUI/phlexy_ui.git
revision: f35d63251d08252c498e009423bd00be340abe0e
revision: b5d976c720cf54b9b75cf0abf036248be66397d4
branch: main
specs:
phlexy_ui (0.1.20)
phlexy_ui (0.1.21)
phlex (>= 1.10)
zeitwerk (~> 2.6)

Expand Down
8 changes: 6 additions & 2 deletions app/views/components/sidebar.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
class Sidebar < ApplicationView
include Phlex::Rails::Helpers::ImageTag
include Phlex::Rails::Helpers::LinkTo
include ActionView::Helpers::DateHelper

def view_template
aside class: "w-80 bg-base-100 min-h-[100dvh] overscroll-contain" do
Expand All @@ -15,8 +16,11 @@ def view_template
plain "PhlexyUI"
end

span class: "mt-2" do
"v#{PhlexyUI::VERSION}"
span class: "mt-3 flex flex-col" do
plain "v#{PhlexyUI::VERSION}"
span class: "text-xs text-base-content/70" do
plain "#{time_ago_in_words(PhlexyUI::UPDATED_AT)} ago"
end
end
end

Expand Down

0 comments on commit 852f4f1

Please sign in to comment.