Polish commit logs
This commit is contained in:
parent
83fcfc8bb2
commit
ccd56c7e4f
2 changed files with 21 additions and 21 deletions
|
|
@ -16,7 +16,7 @@ class CommitLogsTableViewController: UITableViewController {
|
|||
super.viewDidLoad()
|
||||
commits = PasswordStore.shared.getRecentCommits(count: 20)
|
||||
navigationItem.title = "Recent Commit Logs"
|
||||
navigationItem.leftBarButtonItem?.title = "About"
|
||||
navigationController!.navigationBar.topItem!.title = "About"
|
||||
}
|
||||
|
||||
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
|
||||
|
|
@ -26,8 +26,8 @@ class CommitLogsTableViewController: UITableViewController {
|
|||
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
||||
let cell = tableView.dequeueReusableCell(withIdentifier: "commitLogCell", for: indexPath)
|
||||
let formatter = DateFormatter()
|
||||
formatter.dateStyle = DateFormatter.Style.medium
|
||||
formatter.timeStyle = .medium
|
||||
formatter.dateStyle = DateFormatter.Style.short
|
||||
formatter.timeStyle = .none
|
||||
let dateString = formatter.string(from: commits[indexPath.row].commitDate)
|
||||
cell.textLabel?.text = dateString
|
||||
cell.detailTextLabel?.text = commits[indexPath.row].message
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue