Display transaction code in hledger-web
This commit is contained in:
parent
10c71cb447
commit
961fd71e57
@ -7,6 +7,8 @@
|
|||||||
|
|
||||||
module Hledger.Web.Handler.JournalR where
|
module Hledger.Web.Handler.JournalR where
|
||||||
|
|
||||||
|
import qualified Data.Text as T -- for journal.hamlet
|
||||||
|
|
||||||
import Hledger
|
import Hledger
|
||||||
import Hledger.Cli.CliOptions
|
import Hledger.Cli.CliOptions
|
||||||
import Hledger.Web.Import
|
import Hledger.Web.Import
|
||||||
|
|||||||
@ -227,6 +227,11 @@ ul {
|
|||||||
whitespace: nowrap;
|
whitespace: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.transaction-code {
|
||||||
|
font-family: monospace;
|
||||||
|
color: #888;
|
||||||
|
}
|
||||||
|
|
||||||
.col-any-0 {
|
.col-any-0 {
|
||||||
width:0 !important;
|
width:0 !important;
|
||||||
height:0 !important;
|
height:0 !important;
|
||||||
|
|||||||
@ -12,6 +12,9 @@ $if elem AddPermission perms
|
|||||||
<div .title title="#{showTransaction torig}">
|
<div .title title="#{showTransaction torig}">
|
||||||
<time .date datetime="#{show (tdate torig)}" nowrap>
|
<time .date datetime="#{show (tdate torig)}" nowrap>
|
||||||
#{show (tdate torig)}
|
#{show (tdate torig)}
|
||||||
|
$if not $ T.null $ tcode torig
|
||||||
|
<div .transaction-code>
|
||||||
|
(#{tcode torig})
|
||||||
<div>
|
<div>
|
||||||
#{textElideRight 60 (tdescription torig)}
|
#{textElideRight 60 (tdescription torig)}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user