@@ -88,25 +88,39 @@ def action_text(self):
8888 elif self .target_field == "action_rejeter" :
8989 return "a refusé la demande de"
9090 elif self .target_field == "reupload" :
91- return "a re-uploadé"
91+ return "a remplacé le fichier de"
92+ elif self .target_field == "staff_pick" :
93+ return (
94+ "a ajouté un staff pick sur"
95+ if str (self .new_value ) == "True"
96+ else "a retiré le staff pick de"
97+ )
9298 label = self .FIELD_LABELS .get (self .target_field , self .target_field )
9399 return f"a modifié '{ label } ' sur"
94100
95101 @property
96102 def document_action_text (self ):
97103 """Action text for document history context (no trailing 'sur')."""
98104 if self .target_field == "reupload" :
99- return "re-upload "
105+ return "fichier remplacé "
100106 if self .target_field == "hidden" :
101- return "caché" if str (self .new_value ) == "True" else "rendu visible"
107+ return (
108+ "document caché"
109+ if str (self .new_value ) == "True"
110+ else "document rendu visible"
111+ )
102112 if self .target_field == "staff_pick" :
103113 return (
104- "ajouté staff pick"
114+ "staff pick ajouté "
105115 if str (self .new_value ) == "True"
106- else "retiré staff pick"
116+ else "staff pick retiré "
107117 )
108- label = self .FIELD_LABELS .get (self .target_field , self .target_field )
109- return f"modifié { label } "
118+ field_actions = {
119+ "name" : "titre modifié" ,
120+ "description" : "description modifiée" ,
121+ "tags" : "tags modifiés" ,
122+ }
123+ return field_actions .get (self .target_field , f"{ self .target_field } modifié" )
110124
111125 @property
112126 def action_color (self ):
0 commit comments