mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-10-25 03:57:13 +08:00
Add topic support (#3711)
* add topic models and unit tests * fix comments * fix comment * add the UI to show or add topics for a repo * show topics on repositories list * fix test * don't show manage topics link when no permission * use green basic as topic label * fix topic label color * remove trace content * remove debug function
This commit is contained in:
11
models/fixtures/repo_topic.yml
Normal file
11
models/fixtures/repo_topic.yml
Normal file
@ -0,0 +1,11 @@
|
||||
-
|
||||
repo_id: 1
|
||||
topic_id: 1
|
||||
|
||||
-
|
||||
repo_id: 1
|
||||
topic_id: 2
|
||||
|
||||
-
|
||||
repo_id: 1
|
||||
topic_id: 3
|
||||
13
models/fixtures/topic.yml
Normal file
13
models/fixtures/topic.yml
Normal file
@ -0,0 +1,13 @@
|
||||
-
|
||||
id: 1
|
||||
name: golang
|
||||
repo_count: 1
|
||||
|
||||
-
|
||||
id: 2
|
||||
name: database
|
||||
repo_count: 1
|
||||
|
||||
- id: 3
|
||||
name: SQL
|
||||
repo_count: 1
|
||||
Reference in New Issue
Block a user