Skip to content

Commit

Permalink
refactored main view to use new profile-path function (now consistent…
Browse files Browse the repository at this point in the history
… with the usage of avatar-path)
  • Loading branch information
Simon Koelsch committed Mar 15, 2015
1 parent 58f872e commit 9c4cb2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/statuses/views/main.clj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[hiccup.form :refer [form-to hidden-field text-field]]
[statuses.configuration :refer [config]]
[statuses.routes :refer [avatar-path update-path
updates-path]]
updates-path profile-path]]
[statuses.views.common :as common :refer [icon]]
[statuses.views.layout :as layout]))

Expand Down Expand Up @@ -41,7 +41,7 @@
(defn update [is-current {:keys [id text author time in-reply-to conversation can-delete?]}]
(list
[:div.avatar
(link-to (str (config :profile-url-prefix) author) [:img {:src (avatar-path author) :alt author}])]
(link-to (profile-path author) [:img {:src (avatar-path author) :alt author}])]
[:div.meta
[:span.author (link-to (str (updates-path) "?author=" author) author)]
(if in-reply-to
Expand Down

0 comments on commit 9c4cb2b

Please sign in to comment.