In repo change feed, entry ID is now the URL of patch page
This commit is contained in:
parent
4bd33b59e5
commit
632bfe1979
1 changed files with 4 additions and 4 deletions
|
@ -32,9 +32,9 @@ import Vervis.Foundation
|
|||
import Vervis.Model.Ident
|
||||
import Vervis.Model.Repo
|
||||
|
||||
changeEntry :: LogEntry -> FeedEntry (Route App)
|
||||
changeEntry le = FeedEntry
|
||||
{ feedEntryLink = HomeR
|
||||
changeEntry :: ShrIdent -> RpIdent -> LogEntry -> FeedEntry (Route App)
|
||||
changeEntry shr rp le = FeedEntry
|
||||
{ feedEntryLink = RepoPatchR shr rp $ leHash le
|
||||
, feedEntryUpdated = fst $ leTime le
|
||||
, feedEntryTitle = leMessage le
|
||||
, feedEntryContent = mempty
|
||||
|
@ -72,5 +72,5 @@ changeFeed shr repo mbranch vcs les = Feed
|
|||
, feedLanguage = "en"
|
||||
, feedUpdated = fst $ leTime $ head les
|
||||
, feedLogo = Nothing
|
||||
, feedEntries = map changeEntry les
|
||||
, feedEntries = map (changeEntry shr repo) les
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue